Keyboard Shortcuts
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 shortcuts.
Basic editing
Command | Key |
---|---|
Select up | Shift+Up |
Select down | Shift+Down |
Select line | Ctrl+L |
Cut line (without selection) | Ctrl+X |
Copy line (without selection) | Ctrl+C |
Paste | Ctrl+V |
Delete line | Ctrl+Shift+K |
Move Line Down | Alt+Down |
Move Line Up | Alt+Up |
Copy Line Down | Shift+Alt+Down |
Copy Line Up | Shift+Alt+Up |
Undo | Ctrl+Z |
Redo | Ctrl+Y |
Format | Ctrl+S |
Add cursors | Alt+Left Click |
Undo last cursor operation | Ctrl+U |
Select all occurrences of current selection | Ctrl+Shift+L |
Select all occurrences of the current word | Ctrl+F2 |
Jump to matching bracket | Ctrl+Shift+\ |
Indent Line | Ctrl+] |
Outdent Line | Ctrl+[ |
Go to Beginning of Line | Home |
Go to End of Line | End |
Go to End of File | Ctrl+End |
Go to Beginning of File | Ctrl+Home |
Toggle Line Comment | Ctrl+/ |
Add Block Comment | Shift+Alt+A |
Find | Ctrl+F |
Find Next | Enter |
Find Previous | Shift+Enter |
Add Selection To Next Find Match | Ctrl+D |
Select All Occurrences of Find Match | Alt+Enter |
Trigger Suggest | Ctrl+Space |
Go to References | Ctrl+F12 |
Peek Definition | shift+F12 |
Rename Symbol | F2 |
Generate Code (Replit AI subscription required) | Alt+G |
Code Actions | Ctrl+. |
Navigation
Command | Key |
---|---|
Go to Line... | Ctrl+G |
Go to File..., Quick Open | Ctrl+P |
Go to Next Error or Warning | F8 |
Show command palette | Ctrl+Shift+P or F1 (use F1 on Firefox). |
Go Back | Alt+Left |
Go Forward | Alt+Right |
Show Version Control | Ctrl+Shift+G |
Show Search | Ctrl+Shift+F |
Open Settings | Ctrl+, |
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.
Command palette
The command palette allows you to view all available commands based on your current context.
To access the command palette, press F1
or Ctrl+Shift+P
.
If you are using Firefox, Ctrl+Shift+P
will open an incognito window, so use the F1
option instead.
Navigating with the Tab
key
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.