Shortcuts
Editing
- Ctrl + C / Cmd + C: Copy the selected text to the clipboard.
- Ctrl + V / Cmd + V: Paste the text from the clipboard.
- Ctrl + X / Cmd + X: Cut the selected text and copy it to the clipboard.
- Ctrl + Z / Cmd + Z: Undo the last action.
- Ctrl + Shift + Z / Cmd + Shift + Z: Redo the last undone action.
- Ctrl + F / Cmd + F / Ctrl + G / Cmd + G: Open the search panel to find text.
- [NOT WORKING] Ctrl + S / Cmd + S: Save the current file.
- [NOT WORKING] Ctrl + H / Cmd + H: Open the replace panel to find and replace text.
- Cmd + Delete: Deletes the entire part of the line from the cursor to the left visual line.
- Ctrl + T: Swap the characters before and after the cursor.
- Enter: Insert a newline and auto-indent the new line.
- Insert: Flip the overwrite flag.
Selection
- Ctrl + A / Cmd + A: Select all text in the current file.
- Shift + Up: Selects text up to the line above, expanding the selection as you continue pressing the key.
- Shift + Down: Selects text down to the line below, expanding the selection as you continue pressing the key.
- Cmd + Shift + Up: Select all from the cursor to the very top of the document.
- Cmd + Shift + Down: Select all from the cursor to the very bottom of the document.
- Ctrl + U / Cmd + U: Undo the last change to the selection.
- Alt + U / Shift + Cmd + U: Redo the last change to the selection.
- Esc: When multiple selections are present, this deselects all but the primary selection.
- Cmd + D: Selects the word to at the cursor, double click selects all words that match the cursor word.
Movement
- Home: Move to the start of the text on the line.
- End: Move to the end of the text on the line.
- Ctrl + Home / Cmd + Home / Cmd + Up: Move the cursor to the start of the document.
- Ctrl + End / Cmd + End / Cmd + Down: Move the cursor to the end of the document.
- Alt + Left / Ctrl + A: Move the cursor to the start of the line.
- Alt + Right / Ctrl + E: Move the cursor to the end of the line.
- Cmd + Right: Move the cursor to the right side of the visual line it is on.
- Cmd + Left: Move the cursor to the left side of the visual line it is on. If this line is wrapped, that may not be the start of the line.
- Up / Ctrl + P: Move the cursor up one line.
- Down / Ctrl + N: Move down one line.
- Shift + Ctrl + V: Select all from the cursor to the end of the document.
- PageDown / Ctrl + V: Move the cursor down one screen, and scroll down by the same distance.
- Left / Ctrl + B: Move the cursor one character left, going to the previous line when hitting the start of line.
- Right / Ctrl + F: Move the cursor one character right, going to the next line when hitting the end of line.
- Alt + B: Move the cursor to the start of the previous word.
- Alt + F: Move the cursor to the end of the next word.
- Ctrl + Left / Cmd + Left: Move to the left of the group before the cursor. A group is a stretch of word characters, a stretch of punctuation characters, a newline, or a stretch of more than one whitespace character.
- Ctrl + Right / Cmd + Right: Move to the right of the group after the cursor (see above).
Deletion
- Shift + Backspace / Ctrl + H: Delete the character before the cursor.
- Delete / Ctrl + D: Delete the character after the cursor.
- Ctrl + K: Deletes the part of the line after the cursor.
- Alt + Backspace: Delete up to the start of the word before the cursor.
- Alt + D: Delete up to the end of the word after the cursor.
- Ctrl + Backspace / Alt + Backspace: Delete to the left of the group before the cursor.
- Ctrl + Delete / Ctrl + Alt + Backspace / Alt + Delete: Delete to the start of the group after the cursor.
Indentation
- Tab: Indent by one unit. If multiple lines selected indent all by one unit.
- Shift-Tab: Reduce indent buy one unit. If multiple lines selected reduce indent form all by one unit.
- Ctrl + ] / Cmd + ]: Indent the current line or selection by one unit.
- Ctrl + [ / Cmd + [: Dedent the current line or selection by one unit.
Program Control
- F8: Build only.
- Shift + F8: Cancel build.
- F9: Build and deploy.
- Shift + F9: Cancel build and deploy.