You are currently viewing the new Anvil Editor Docs.
Switch to the Classic Editor Docs
You are currently viewing the Classic Editor Docs.
Switch to the new Anvil Editor Docs

Keyboard Shortcuts

There are several keyboard shortcuts available in the Anvil Editor. If you are using a Mac, you can use Cmd instead of Ctrl everywhere if you prefer.

In the Form Editor

The following shortcuts are available in both Design and Code view.

  • Ctrl-Shift-F — Search all code in the app
  • Ctrl-Enter — Save and run the app
  • 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-Z — Undo the latest change
  • Ctrl-Y or Ctrl-Shift-Z — Redo the latest reverted change
  • Ctrl-C — Copy the currently selected component(s) or code
  • Ctrl-X — Cut the currently selected component(s) or code
  • Ctrl-V — Paste the cut/copied components or code into the selected container or at the cursor
  • Ctrl-B — Open or close the App Browser panel

Design View Only

  • Delete or Backspace — Delete the currently selected component(s)
  • Ctrl-Drag — Fine-grained control over column resizing

Code View Only

  • 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-I — Reindent the code to match your tabsize preference
  • Ctrl+Q — Expand/collapse currently selected block of code.
  • Ctrl-/ — Comment/uncomment a line or block of code
  • Ctrl-Click-Function — Click on a function to jump to its definition.
  • Ctrl-Click-Variable — Click on a variable to jump to its definition.

In Data Tables

  • 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

Do you still have questions?

Our Community Forum is full of helpful information and Anvil experts.