Keyboard shortcuts are a great way to save time and increase productivity.
The shortcuts shown in this document are the default ones set up in Replit. See here for customizing keyboard shortcuts.
If you're using a Mac, use the
Cmd key instead of the
Ctrl key, and the
Option key instead of the
Alt key. The shortcuts shown in this document do not apply if you have customized your own shortcuts.
|Cut line (without selection)|
|Copy line (without selection)|
|Move Line Down|
|Move Line Up|
|Copy Line Down|
|Copy Line Down|
|Undo last cursor operation|
|Select all occurrences of current selection|
|Select all occurrences of current word|
|Jump to matching bracket|
|Go to Beginning of Line|
|Go to End of Line|
|Go to End of File|
|Go to Beginning of File|
|Toggle Line Comment|
|Add Block Comment|
|Add Selection To Next Find Match|
|Select All Occurrences of Find Match|
|Go to References|
|Generate Code (Ghostwriter subscription required)|
|Go to Line...|
|Go to File..., Quick Open|
|Go to Next Error or Warning|
|Show command palette|
|Show Version Control|
Frequently used keyboard shortcuts
The following keyboard shortcuts can be used in a variety of ways. If you forget a keyboard shortcut, check the command palette.
The command palette allows you to view all available commands based on your current context.
To access the command palette, press
Note: If you are using Firefox,
Ctrl+Shift+P will open an incognito window, so use the
F1 option instead.
In most cases, you can navigate the entire page via the
Tab key. In the editor, console, and shell, however,
Tab will be used for indentation. In these cases, you can press
Esc and then press
Tab to navigate to the next element on the page.