Shortcut | Action |
---|---|
Ctrl - Z | Undo the last action (can be used multiple times) |
Ctrl - Y | Redo the last undone action (can be used multiple times) |
Esc | ... |
F5 | ... |
When you start typing a keyword, a function or a variable name, the editor will suggest completions. You can press Enter to accept the suggestion, use ↑ and ↓ to navigate through the suggestions, or press Esc or continue typing to close the suggestions.
Shortcut | Action |
---|---|
Ctrl + / | Comment/uncomment the current line or the selection (toggle) |
Shortcut | Action |
---|---|
Tab | Indent the current line or the selection (= push it to the right) |
Shift + Tab | Dedent the current line or the selection (= push it to the left) |
Shortcut | Action |
---|---|
Ctrl - F | Open the find/replace dialog box |
Esc | Close the find/replace dialog box |
Shortcut | Action |
---|---|
Ctrl - X | Cut the selected text into the clipboard |
Ctrl - C | Copy the selected text into the clipboard |
Ctrl - V | Paste the clipboard content |
Shift - Delete | Cut the current line (no need to select it first) |
Backspace | Delete the previous character |
Delete | Delete the next character |
Shortcut | Action |
---|---|
Left | Move one character to the left |
Right | Move one character to the right |
Ctrl + Left | Move one word to the left |
Ctrl + Right | Move one word to the right |
Up | Move one line up |
Down | Move one line down |
Home | Move to the start of the line (toggle) |
End | Move to the end of the line |
PgUp | Move one page up |
PgDn | Move one page down |
Ctrl + Home | Move to the top of the file |
Ctrl + End | Move to the bottom of the file |
In general, pressing Shift at the same time as one of the keyboard shortcuts to move the cursor will select text.
Shortcut | Action |
---|---|
Esc | Unselect |
Ctrl + A | Select the whole content of the file |
Shift + Left | Select the previous character |
Shift + Right | Select the next character |
Ctrl + Shift + Left | Select the previous word |
Ctrl + Shift + Right | Select the next word |
Ctrl + Shift + Home | Select until the top of the file |
Ctrl + Shift + End | Select until the bottom of the file |
Shortcut | Action |
---|---|
Click | Move the caret |
Double - click | Select one word (or more if you continue dragging the mouse) |
Triple - click | Select one line (or more if you continue dragging the mouse) |
Drag | Move the selection |
Ctrl + drag | Copy the selection |