command-palette.rst 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. .. include:: ../_header.rst
  2. .. highlight:: javascript
  3. Command palette
  4. ---------------
  5. The `Command palette`_ is a dialog that shows the commands available in the **current context**. You can open it by pressing ``Ctrl+K`` or clicking on the **Command Palette** option of the |MainMenu|_.
  6. Not all commands are shown, those that do not apply to the **current context** (active view, active editor or active dialog) are omitted.
  7. In the dialog, you can select a command and execute it by pressing the **Execute** button.
  8. .. image:: ../images/workbench-command-palette-04072020.webp
  9. :alt: Command palette dialog.
  10. Commands are contributed to the workbench, by plugins.
  11. Here a list of all the available commands, grouped by category:
  12. .. csv-table::
  13. :header: "Category", "Command", "Keys", "Description"
  14. :widths: 1, 1, 1, 4
  15. "General","Decrement Tab Size","``Ctrl+3``","Make bigger the editor tabs."
  16. "General","Increment Tab Size","``Ctrl+4``","Make smaller the editor tabs."
  17. "General","Close Editor","``Ctrl+Q``","Close active editor."
  18. "General","Close All Editors","``Ctrl+Shift+Q``","Close all editors."
  19. "General","Undo","``Ctrl+Z``","Undo operation"
  20. "General","Redo","``Ctrl+Shift+Z``","Redo operation"
  21. "General","Collapse All","``C``","Collapse all elements"
  22. "General","Select All","``Ctrl+A``","Select all elements"
  23. "General","Expand/Collapse Branch","``Space``","Expand or collapse a branch of the select element"
  24. "General","Escape","``Escape``","Escape"
  25. "General","Command Palette","``Ctrl+K``","Show a dialog with the list of commands active in that context."
  26. "General","Open Comment Dialog","``Ctrl+Alt+Space``","Open a comment dialog to write texts in presentations or screen-recording videos."
  27. "General","Select Color Theme","``Ctrl+2``","Select the color theme of the IDE."
  28. "General","Increment Viewer Font Size","````","Increments the font size of viewers"
  29. "General","Decrement Viewer Font Size","````","Decrement the font size of viewers"
  30. "General","Reset Viewer Font Size","````","Reset the font size of viewers"
  31. "Edit","Save","``Ctrl+S``","Save"
  32. "Edit","Delete","``Delete``","Delete"
  33. "Edit","Rename","``F2``","Rename"
  34. "Edit","Copy","``Ctrl+C``","Copy selected objects."
  35. "Edit","Cut","``Ctrl+X``","Cut selected objects."
  36. "Edit","Paste","``Ctrl+V``","Paste clipboard content."
  37. "Edit","Update Current Editor","````","Refresh the current editor's content."
  38. "Edit","Paste In Place","``Ctrl+Shift+V``","Paste the objects in destiny at the same original locations."
  39. "All In One","Open Project","``Ctrl+Alt+J``","Open an existing project."
  40. "All In One","Close Project","``Ctrl+Alt+C``","Close the current project."
  41. "All In One","New Window","````","Open a new window."
  42. "Files","New File","``Ctrl+Alt+N``","Create new content."
  43. "Files","Go To File","``Ctrl+P``","Search for a file and open it in the default editor"
  44. "Project","Enable Open Code File In External Editor","````","If enable, clicking on a coding file in the Files view opens the external editor"
  45. "Project","Disable Open Code File In External Editor","````","If disabled, clicking on a coding file open the built-in editor."
  46. "Project","Play Project","``F12``","Run this project in the browser."
  47. "Project","Quick Play Project","``F10``","Run this project in a dialog."
  48. "Project","Reload Project","``Ctrl+Alt+R``","Reload the project files."
  49. "Project","Compile Project","``Ctrl+Alt+B``","Compile all files."
  50. "Project","Locate File","``Ctrl+Alt+L``","Open the selected file (or project root) in the OS file manager."
  51. "Project","Open VS Code","``Ctrl+Alt+U``","Open the project in the configured external editor (VS Code)."
  52. "Asset Pack","Import File","``A``","Import a new file into the project by adding an entry for it to this Asset Pack."
  53. "ScriptNode","Create User Files (js)","````","Create the user files with the ScriptNode API."
  54. "ScriptNode","Create User Files (js-module)","````","Create the user files with the ScriptNode API."
  55. "ScriptNode","Create User Files (ts)","````","Create the user files with the ScriptNode API."
  56. "ScriptNode","Create User Files (ts-module)","````","Create the user files with the ScriptNode API."
  57. "Scene Editor","Preview Scene","``Ctrl+0``","Run the game and jump to the scene of the active scene editor"
  58. "Scene Editor","Set Default Render Type To CANVAS","````","Set the default render type of the scenes to Phaser.CANVAS"
  59. "Scene Editor","Set Default Render Type To WEBGL","````","Set the default render type of the scenes to Phaser.WEBGL"
  60. "Scene Editor","Enable Pixel Art Rendering","````","Enable pixel-art rendering in the scenes"
  61. "Scene Editor","Disable Pixel Art Rendering","````","Disable pixel-art rendering in the scenes"
  62. "Scene Editor","Fix Duplicated Scenes ID","````","Fix the duplicated ID of the scene files."
  63. "Scene Editor","Migrate All Scene Files","````","Run the migration process in all scene files and compile the project."
  64. "Scene Editor","Clear Scene Thumbnail Cache","````","Clear the thumbnail images cache."
  65. "Scene Editor","Go To Scene","``Ctrl+Alt+O``","Quick dialog to open a scene file."
  66. "Scene Editor","Move Up","``PageUp``","Move up object in the list."
  67. "Scene Editor","Move Down","``PageDown``","Move down object in the list."
  68. "Scene Editor","Move Top","``Home``","Move top object in the list."
  69. "Scene Editor","Move Bottom","``End``","Move bottom object in the list."
  70. "Scene Editor","Add Object","``A``","Add a built-in object to the scene."
  71. "Scene Editor","Duplicate Scene File","````","Duplicate the scene file, with a new ID."
  72. "Scene Editor","Toggle Visibility","``V``","Toggle the visible property of the object"
  73. "Scene Editor","Create Layer With Selection","````","Create a layer with the selected objects"
  74. "Scene Editor","Create Container With Selection","``J``","Create a container with the selected objects"
  75. "Scene Editor","Trim Container","``Shift+T``","Remove left/top margin of children."
  76. "Scene Editor","Break Parent","``Shift+B``","Destroy container and re-parent children."
  77. "Scene Editor","Select Parent","``P``","Select the parent container"
  78. "Scene Editor","Select Children","``N``","Select the children"
  79. "Scene Editor","Move To Parent","``Shift+P``","Re-parent the selected objects."
  80. "Scene Editor","Open Output File","````","Open the output source file of the scene."
  81. "Scene Editor","Compile Scene","````","Compile the editor's Scene."
  82. "Scene Editor","Translate Tool","``T``","Translate the selected scene objects"
  83. "Scene Editor","Rotate Tool","``R``","Rotate the selected scene objects"
  84. "Scene Editor","Polygon Tool","``Y``","Edit the points of the polygon."
  85. "Scene Editor","Scale Tool","``S``","Scale the selected scene objects"
  86. "Scene Editor","Origin Tool","``O``","Change the origin of the selected scene object"
  87. "Scene Editor","Select Region Tool","``Shift+S``","Select all objects inside a region"
  88. "Scene Editor","Pan Tool","``Space``","Pan the scene viewport"
  89. "Scene Editor","Resize Tool","``Z``","Resize selected objects."
  90. "Scene Editor","Arcade Physics Body Tool","``B``","Edit body of selected objects."
  91. "Scene Editor","Slice Tool","````","Edit selected slice objects."
  92. "Scene Editor","Hit Area Tool","``I``","Resize the hit area of the selected objects."
  93. "Scene Editor","Set Origin To Top/Left","``Ctrl+Numpad7``","Set the origin of the object to (0,0)"
  94. "Scene Editor","Set Origin To Top/Center","``Ctrl+Numpad8``","Set the origin of the object to (0.5,0)"
  95. "Scene Editor","Set Origin To Top/Right","``Ctrl+Numpad9``","Set the origin of the object to (1,0)"
  96. "Scene Editor","Set Origin To Middle/Left","``Ctrl+Numpad4``","Set the origin of the object to (0,0.5)"
  97. "Scene Editor","Set Origin To Middle/Center","``Ctrl+Numpad5``","Set the origin of the object to (0.5,0.5)"
  98. "Scene Editor","Set Origin To Middle/Right","``Ctrl+Numpad6``","Set the origin of the object to (1,0.5)"
  99. "Scene Editor","Set Origin To Bottom/Left","``Ctrl+Numpad1``","Set the origin of the object to (0,1)"
  100. "Scene Editor","Set Origin To Bottom/Center","``Ctrl+Numpad2``","Set the origin of the object to (0.5,1)"
  101. "Scene Editor","Set Origin To Bottom/Right","``Ctrl+Numpad3``","Set the origin of the object to (1,1)"
  102. "Scene Editor","Replace Type","````","Replace the type of the selected objects."
  103. "Scene Editor","Convert To TileSprite","``L``","Convert the selected objects into TileSprite instances. Or resize it if it is a TileSprite."
  104. "Scene Editor","Open Prefab","``F``","Open the Prefab file of the selected prefab instance."
  105. "Scene Editor","Create Prefab With Object","````","Create a new prefab file with the selected object."
  106. "Scene Editor","Quick Edit Output File","``Q``","Shortcut to edit the compiled code in a popup editor."
  107. "Scene Editor","Open Output File in VS Code","``Ctrl+Alt+E``","Open the compiler output file in the configured external editor (VS Code)"
  108. "Scene Editor","Move Object Position 10x Left","``Shift+Left``","10x Move selected objects position in the 'Left' direction"
  109. "Scene Editor","Move Object Position Left","``Left``","Move selected objects position in the 'Left' direction"
  110. "Scene Editor","Move Object Position 10x Right","``Shift+Right``","10x Move selected objects position in the 'Right' direction"
  111. "Scene Editor","Move Object Position Right","``Right``","Move selected objects position in the 'Right' direction"
  112. "Scene Editor","Move Object Position 10x Up","``Shift+Up``","10x Move selected objects position in the 'Up' direction"
  113. "Scene Editor","Move Object Position Up","``Up``","Move selected objects position in the 'Up' direction"
  114. "Scene Editor","Move Object Position 10x Down","``Shift+Down``","10x Move selected objects position in the 'Down' direction"
  115. "Scene Editor","Move Object Position Down","``Down``","Move selected objects position in the 'Down' direction"
  116. "Scene Editor","Select All With Same Texture","````","Select all the objects with the same texture."
  117. "Scene Editor","Replace Texture","``X``","Change the texture of the selected objects."
  118. "Scene Editor","Replace Texture Frame","``F``","Change the texture's frame of the selected objects."
  119. "Scene Editor","Toggle Snapping","``E``","Enable/disable the snapping."
  120. "Scene Editor","Snap To Object Size","``W``","Enable snapping and set size to the selected object."
  121. "Scene Editor","Add Arcade Physics Body","````","Add an Arcade physics body to the selected objects."
  122. "Scene Editor","Remove Arcade Physics Body","````","Remove the Arcade physics body from the selected objects."
  123. "Scene Editor","Center Arcade Physics Body","````","Center the Arcade Physics Body of the selected objects."
  124. "Scene Editor","Resize Arcade Physics Body To Object Size","````","Resize & center the Arcade Physics Body to fill the whole object's size."
  125. "Scene Editor","Browse Scripts","``Shift+U``","Opens the Browse Scripts dialog"
  126. "Scene Editor","Add Script","``U``","Opens the Add Script Dialog"
  127. "Scene Editor","Add User Component","``M``","Pick a User Component and add it to the selected objects"
  128. "Scene Editor","Browse User Components","``Shift+M``","Browse all user components in the scene's objects."
  129. "Scene Editor","Add Prefab Property","````","Add a new property to the current prefab"
  130. "User Components Editor","Add User Component","``A``","Add a new User Component."
  131. "User Components Editor","Compile","````","Compile User Components file."
  132. "User Components Editor","Open Component Output File","````","Open the output source file of the selected component."
  133. "User Components Editor","Quick Edit Component Source File","``Q``","Open output component file in a popup editor."
  134. "User Components Editor","Open Component Output File in VS Code","``Ctrl+Alt+E``","Open the compiler output file in the configured external editor (VS Code)"
  135. "Sprite Animation","Add Animation","``A``","Add a new animation"
  136. "Sprite Animation","Prepend Frames","````","Prepend frames to the selected animation."
  137. "Sprite Animation","Append Frames","````","Append frames to the selected animation."