Skip to main content

Keyboard Shortcuts

Keyboard shortcuts can be used to perform various actions within the Easel editor more quickly and efficiently.

Editing Shortcuts

Indentation:

  • Tab: Indent the selected lines of code.
  • Shift + Tab: Unindent the selected lines of code.

Undo and redo:

  • Ctrl + Z: Undo the last action.
  • Ctrl + Shift + Z: Redo the last undone action.

Selection:

  • Ctrl + A: Select all text in the current file.

Commenting:

  • Ctrl + /: Comment or uncomment the selected lines of code.

Clipboard:

  • Ctrl + C: Copy the selected text to the clipboard.
  • Ctrl + X: Cut the selected text and copy it to the clipboard.
  • Ctrl + V: Paste the text from the clipboard at the cursor position.

Find and replace

  • Ctrl + F: Open the find dialog to search for text.
  • Ctrl + Shift + F: Open the find and replace dialog.
  • Esc: Close the find or find and replace dialog.
  • F3: Find the next occurrence of the search term.
  • Shift + F3: Find the previous occurrence of the search term.

Switching between files

  • Ctrl + Tab: Switch back to the previous file. Keep holding down Ctrl and press Tab repeatedly to cycle through recent files. Ctrl + Shift + Tab will cycle backwards.
  • Ctrl + P: Switch to a file by name. This will open a search dialog where you can type the name of the file you want to switch to.

Running your game

  • F5 or Ctrl+Enter: Preview the current game in the browser. Then press Ctrl+Shift+Enter to exit Preview mode.

Vim mode

Vim mode is an advanced editing mode that certain programmers use to navigate and edit text more efficiently. See Vim Mode for more details.