Skip to main content

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

CommandKey
Select upShift+Up
Select downShift+Down
Select lineCtrl+L
Cut line (without selection)Ctrl+X
Copy line (without selection)Ctrl+C
PasteCtrl+V
Delete lineCtrl+Shift+K
Move Line DownAlt+Down
Move Line UpAlt+Up
Copy Line DownShift+Alt+Down
Copy Line UpShift+Alt+Up
UndoCtrl+Z
RedoCtrl+Y
FormatCtrl+S
Add cursorsAlt+Left Click
Undo last cursor operationCtrl+U
Select all occurrences of current selectionCtrl+Shift+L
Select all occurrences of the current wordCtrl+F2
Jump to matching bracketCtrl+Shift+\
Indent LineCtrl+]
Outdent LineCtrl+[
Go to Beginning of LineHome
Go to End of LineEnd
Go to End of FileCtrl+End
Go to Beginning of FileCtrl+Home
Toggle Line CommentCtrl+/
Add Block CommentShift+Alt+A
FindCtrl+F
Find NextEnter
Find PreviousShift+Enter
Add Selection To Next Find MatchCtrl+D
Select All Occurrences of Find MatchAlt+Enter
Trigger SuggestCtrl+Space
Go to ReferencesCtrl+F12
Peek Definitionshift+F12
Rename SymbolF2
Generate Code (Replit AI subscription required)Alt+G
Code ActionsCtrl+.
CommandKey
Go to Line...Ctrl+G
Go to File..., Quick OpenCtrl+P
Go to Next Error or WarningF8
Show command paletteCtrl+Shift+P or F1 (use F1 on Firefox).
Go BackAlt+Left
Go ForwardAlt+Right
Show Version ControlCtrl+Shift+G
Show SearchCtrl+Shift+F
Open SettingsCtrl+,

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.

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.

Was this helpful?