[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.

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+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

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+S — Save the app. Note that this also happens automatically, you don’t need to save manually unless you want to specify a custom commit message
  • 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 — Open the file in a new browser window
  • Ctrl+Click on a file name on the App Browser — Open the file in a new browser tab
  • Double Click on a tab — Expand the selected tab to fill the browser window (toggle)
7 Likes