Text Editor Key Bindings
The text editor is equipped with an extensive range of key bindings that address common editing tasks.
Line Operations
Keys | Action/Description |
---|---|
Ctrl-D | Completely removes the line in which the cursor is placed. Lines below shuffle up to replace it. |
Alt-Shift-Down | Any lines that are part of the current selection are copied immediately below the current selection. |
Alt-Shift-Up | Any lines that are part of the current selection are copied immediately above the current selection. |
Alt-Down | Move any lines that are part of the current selection down. |
Alt-Up | Move any lines that are part of the current selection up. |
Alt-Delete | Remove all text from the cursor position to the end of the current line. |
Alt-Backspace | Remove all text from the cursor position to the beginning of the current line. |
Ctrl-Backspace | Remove characters from the left of the cursor to the beginning of the nearest word. |
Ctrl-Delete | Remove characters from the right of the cursor to the end of the nearest word. |
n/a | Splits the current line at the point of the cursor. |
Selection
Keys | Action/Description |
---|---|
Ctrl-A | Select all. |
Shift-Left | Begins a selection region and advances it by one character to the left of the cursor. Repeat to select multiple characters. |
Shift-Right | Begins a selection region and advances it by one character to the right of the cursor. Repeat to select multiple characters. |
Ctrl-Shift-Left | Selects all characters to the left of the cursor to the end of the nearest word or sequence of spaces. |
Ctrl-Shift-Right | Selects all characters to the right of the cursor to the end of the nearest word or sequence of spaces. |
Shift-Home, Alt-Shift-Right | Select to line start. |
Shift-End, Alt-Shift-Left | Select to line end. |
Shift-Up | Selects up one row - the horizontal cursor position remains the same. |
Shift-Down | Selects down one row - the horizontal cursor position remains the same. |
Shift-PageUp | Select page up. |
Shift-PageDown | Select page down. |
Ctrl-Shift-Home | Select to start. |
Ctrl-Shift-End | Select to end. |
Ctrl-Shift-D | Duplicate selection. |
Go to
Keys | Action/Description |
---|---|
Left | Move the cursor one character to the left. |
Right | Move the cursor one character to the right. |
Ctrl-Left | Move the cursor to the next word boundary on the left. |
Ctrl-Right | Move the cursor to the next word boundary on the right. |
Up | Move the cursor one line up. |
Down | Move the cursor one line down. |
Alt-Left, Home | Move the cursor to the start of the line. |
Alt-Right, End | Move the cursor to the end of the line. |
PageUp | Move the cursor up one page. |
PageDown | Move the cursor down one page. |
Ctrl-Home | Move the cursor to the start of the document. |
Ctrl-End | Move the cursor to the end of the document. |
Ctrl-L | Move the cursor to the beginning of a specific line number. |
Find/Replace
Keys | Action/Description |
---|---|
Ctrl-F | Find |
Ctrl-H | Replace |
Folding
Keys | Action/Description |
---|---|
Alt-L, Ctrl-F1 | Fold the current selection. |
Alt-Shift-L, Ctrl-Shift-F1 | Unfold a folded section that lies beneath the cursor. |
Other
Keys | Action/Description |
---|---|
Tab | Indent text from the current cursor position. |
Shift-Tab | Outdent text from the current cursor position. |
Ctrl-Z | Undo the last edit. |
Ctrl-Shift-Z, Ctrl-Y | Redo |
Ctrl-, | Display the settings menu (note that the trailing comma is part of the sequence) |
Insert | Overwrite |
Delete | Delete |