[Wiki] Keyboard shortcuts

While waiting for an update to the official documentation page, I created my own list of shortcuts. Then I thought I could share it as a wiki page, so y’all can contribute with entries that I may have missed.

EDIT: The documentation page has now been updated and improved, but I’ll keep this wiki page live. Time will tell which one becomes stale first! :slight_smile:.

Design View Only

  • Delete or Backspace β€” Delete the currently selected component(s)
  • Ctrl+Drag β€” Fine-grained control over column resizing
  • Ctrl+Drag while dragging a component β€” Allows finer control over the size or position of the component being moved or resized
  • Double Click on column separator of column panel β€” Reset column width, so the two columns have the same width

Code View Only, for the current file (module)

  • Ctrl+D β€” Delete current line
  • Ctrl+F β€” Search the current file. Hit enter repeatedly to find subsequent matches
  • Ctrl+G β€” Find next. Repeats previous search
  • Ctrl+Shift+G β€” Find previous. Repeats previous search backwards
  • Ctrl+Alt+G β€” Go to line number
  • Ctrl+H β€” Replace occurrences of a particular string in the current file one by one
  • Ctrl+Shift+H β€” Replace all occurrences of a particular string in the current file
  • Ctrl+Q β€” Expand/collapse currently selected block of code
  • Ctrl+/ β€” Comment/uncomment a line or block of code
  • Ctrl+Click+Function β€” Click on a (underlined) function to jump to its definition
  • Ctrl+Click+Variable β€” Click on a (underlined) variable to jump to its definition
  • Alt+Up or Alt+Down β€” Move the current or the selected lines up or down
  • Alt+Shift+Up or Alt+Shift+Down β€” Duplicate the current or the selected lines above or below

Linting and Formatting

  • F8 β€” Jump to the next lint warning in the editor
  • Ctrl+I β€” Reindent the code to match your tabsize preference
  • Ctrl+Shift+M β€” Show all lint warnings in a bottom panel
  • Alt+Shift+F β€” Format the module

Region folding

  • Ctrl+Shift+[ β€” Fold current region
  • Ctrl+Shift+] β€” Unold current region
  • Ctrl+Alt+[ β€” Fold all regions recursively
  • Ctrl+Alt+] β€” Unold all regions recursively
  • Ctrl+Alt+k, Ctrl+Alt+0 β€” Fold All Code Recursively
  • Ctrl+Alt+k, Ctrl+Alt+1 β€” Fold level 1
  • Ctrl+Alt+k, Ctrl+Alt+2 β€” Fold level 2
  • Ctrl+Alt+k, Ctrl+Alt+3 β€” Fold level 3
  • Ctrl+Alt+k, Ctrl+Alt+4 β€” Fold level 4
  • Ctrl+Alt+k, Ctrl+Alt+5 β€” Fold level 5
  • Ctrl+Alt+k, Ctrl+Alt+6 β€” Fold level 6
  • Ctrl+Alt+k, Ctrl+Alt+[ β€” Fold Region Recursively
  • Ctrl+Alt+k, Ctrl+Alt+] β€” Unfold Region Recursively
  • Ctrl+Alt+k, Ctrl+Alt+- β€” Fold All except selected region
  • Ctrl+Alt+k, Ctrl+Alt+j β€” Unfold All
  • Alt-Click-Chevron β€” Fold/Unfold all other regions recursively. Child regions will fold or unfold to match their parent region
  • Shift-Click-Chevron β€” Fold/Unfold clicked region recursively. Child regions will fold or unfold to match their parent region.

Selection management

  • Alt+Click β€” Add a new caret (preserving the current carets and selections)
  • Alt+Drag β€” Add a new rectangular selection (preserving the current carets and selections)
  • Alt+Shift+Drag β€” Create a rectangular selection (after resetting any other selection)

Data Table View Only

  • Delete or Backspace β€” Delete the currently selected row(s) or column(s), or set the currently selected cell value to None
  • Up, Down, Left, Right β€” Move between cells
  • Enter β€” Edit the currently selected cell, or move to the cell below if already editing
  • Tab β€” Move to the cell on the right
  • Escape β€” Clear the current selection

Other shortcuts

  • Ctrl+B β€” Open or close the App Browser panel
  • Ctrl+C β€” Copy the currently selected component(s) or code
  • Ctrl+Shift+F β€” Search all code in the app
  • Ctrl+P β€” Open the Jump To window, with the (searchable!) list of available editors
  • Alt+PgUp β€” Goes to the previous editor
  • Alt+PgDown β€” Goes to the next editor
  • Ctrl+V β€” Paste the cut/copied components or code into the selected container or at the cursor
  • Ctrl+X β€” Cut the currently selected component(s) or code
  • Ctrl+Y or Ctrl+Shift+Z β€” Redo the latest reverted change
  • Ctrl+Z β€” Undo the latest change
  • Ctrl+Enter β€” Save and run the app
  • Shift+Click on a file name on the App Browser and on the Jump To window β€” Open the file in a new browser window
  • Ctrl+Click on a file name on the App Browser and on the Jump To window β€” Open the file in a new browser tab
  • Alt+Shift+Z or Double Click the tab bar β€” Maximize the current tab and enter Zen mode
14 Likes