Working with shortcuts
Be more productive with Replit by learning the code editor’s powerful shortcuts for editing, writing, and inspecting code.
The shortcuts we'll show you here are for Windows. If you're using a Mac, use the
Cmd key instead of the
Ctrl key, and the
Option key instead of the
When you use a shortcut, be sure that your repl window has been clicked, or these shortcuts may access the browser's keyboard 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.
Moving the current line
Alt+Down to move the current line up or down.
Clone the current line
Shift+Alt+Down to clone the current line above or below.
Ctrl+L to select a line.
Ctrl+Shift+K to delete a line.
Alt+Left Click to add more cursors.
Ctrl+F to find.
Adding selections to next find match
Ctrl+D to select and then
Ctrl+F to add a selection to the next find match.
Use the following shortcuts to navigate the editor.
Ctrl+P to quickly open files.
Go to line
Ctrl+G to go to a specified line.