This appendix documents the default set of keyboard shortcuts. They can be customized to suit your taste in the Shortcuts pane of the Utilities>Global Options dialog box; see the section called “The Global Options Dialog Box”.
For details, see the section called “Buffers”, the section called “Views” and Chapter 3.
Control-N | New file. |
Control-O | Open file. |
Control-W | Close buffer. |
Control-E Control-W | Close all buffers. |
Control-S | Save buffer. |
Control-E Control-S | Save all buffers. |
Control-P | Print buffer. |
Control-Page Up | Go to previous buffer. |
Control-Page Down | Go to next buffer. |
Control-` | Go to recent buffer. |
Alt-` | Show buffer switcher. |
Control-Q | Exit jEdit. |
For details, see the section called “Views”.
Control-E Control-T | Turn gutter (line numbering) on and off. |
Control-0 | Remove split containing current text area only. |
Control-1 | Remove all splits. |
Control-2 | Split view horizontally. |
Control-3 | Split view vertically. |
Alt-Page Up | Send keyboard focus to previous text area. |
Alt-Page Down | Send keyboard focus to next text area. |
Control-E Control-Up; Control-Left; Control-Down; Control-Right | Send keyboard focus to top; bottom; left; right docking area. |
Control-E Control-` | Close currently focused docking area. |
Control-E Control-E | Send keyboard focus back to current text area. |
For details, see the section called “Command Repetition”.
Control-Enternumbercommand | Repeat the command (it can be a keystroke, menu item selection or tool bar click) the specified number of times. |
For details, see the section called “Moving The Caret”, the section called “Working With Words”, the section called “Working With Lines”, the section called “Working With Paragraphs” and the section called “Bracket Matching”.
Arrow | Move caret one character or line. |
Control-Arrow | Move caret one word or paragraph. |
Page Up; Page Down | Move caret one screenful. |
Home | First non-whitespace character of line, beginning of line, first visible line (repeated presses). |
End | Last non-whitespace character of line, end of line, last visible line (repeated presses). |
Control-Home | Beginning of buffer. |
Control-End | End of buffer. |
Control-] | Go to matching bracket. |
Control-E Control-[; Control-] | Go to previous; next bracket. |
Control-L | Go to line. |
For details, see the section called “Selecting Text”, the section called “Working With Words”, the section called “Working With Lines”, the section called “Working With Paragraphs” and the section called “Bracket Matching”.
Shift-Arrow | Extend selection by one character or line. |
Control-Shift-Arrow | Extend selection by one word or paragraph. |
Shift-Page Up; Shift-Page Down | Extend selection by one screenful. |
Shift-Home | Extend selection to first non-whitespace character of line, beginning of line, first visible line (repeated presses). |
Shift-End | Extend selection to last non-whitespace character of line, end of line, last visible line (repeated presses). |
Control-Shift-Home | Extend selection to beginning of buffer. |
Control-Shift-End | Extend selection to end of buffer. |
Control-[ | Select code block. |
Control-E W; L; P | Select word; line; paragraph. |
Control-E Control-L | Select line range. |
Control-\ | Switch between single and multiple selection mode. |
For details, see the section called “Views”.
Control-E Control-J | Ensure current line is visible. |
Control-E Control-I | Center caret on screen. |
Control-'; Control-/ | Scroll up; down one line. |
Alt-'; Alt-/ | Scroll up; down one page. |
For details, see the section called “Undo and Redo”, the section called “Inserting and Deleting Text”, the section called “Working With Words”, the section called “Working With Lines” and the section called “Working With Paragraphs”.
Control-Z | Undo. |
Control-E Control-Z | Redo. |
Backspace; Delete | Delete character before; after caret. |
Control-Backspace; Control-Delete | Delete word before; after caret. |
Control-D; Control-E D | Delete line; paragraph. |
Control-Shift-Backspace; Control-Shift-Delete | Delete from caret to beginning; end of line. |
Control-E R | Remove trailing whitespace from the current line (or all selected lines). |
Control-J | Join lines. |
Control-B | Complete word. |
Control-E F | Format paragraph (or selection). |
For details, see the section called “Transferring Text”.
Control-X or Shift-Delete | Cut selected text to clipboard. |
Control-C or Control-Insert | Copy selected text to clipboard. |
Control-E Control-U | Append selected text to clipboard, removing it from the buffer. |
Control-E Control-A | Append selected text to clipboard, leaving it in the buffer. |
Control-V or Shift-Insert | Paste clipboard contents. |
Control-E Control-P | Vertically paste clipboard contents. |
Control-R Control-X key | Cut selected text to register key. |
Control-R Control-C key | Copy selected text to register key. |
Control-R Control-U key | Append selected text to register key, removing it from the buffer. |
Control-R Control-A key | Append selected text to register key, leaving it in the buffer. |
Control-R Control-V key | Paste contents of register key. |
Control-R Control-P key | Vertically paste contents of register key. |
Control-E Control-V | Paste previous. |
For details, see the section called “Markers”.
Control-E Control-M | If current line doesn't contain a marker, one will be added. Otherwise, the existing marker will be removed. Use the Markers menu to return to markers added in this manner. |
Control-T key | Add marker with shortcut key. |
Control-Y key | Go to marker with shortcut key. |
Control-U key | Select to marker with shortcut key. |
Control-K key | Go to marker with shortcut key, and move the marker to the previous caret position. |
Control-E Control-,; Control-. | Move caret to previous; next marker. |
For details, see the section called “Search and Replace”.
Control-F | Open search and replace dialog box. |
Control-G | Find next. |
Control-H | Find previous. |
Control-E Control-B | Search in open buffers. |
Control-E Control-D | Search in directory. |
Control-E Control-R | Replace in selection. |
Control-E Control-G | Replace in selection and find next. |
Control-, | Incremental search bar. |
Control-. | HyperSearch bar. |
Alt-, | Incremental search for word under the caret. |
Alt-. | HyperSearch for word under the caret. |
For details, see the section called “Abbreviations”, the section called “Tabbing and Indentation” and the section called “Commenting Out Code”.
Control-; | Expand abbreviation. |
Alt-Left; Alt-Right | Shift current line (or all selected lines) left; right. |
Shift-Tab; Tab | Shift selected lines left; right. Note that pressing Tab with no selection active will insert a tab character at the caret position. |
Control-I | Indent current line (or all selected lines). |
Control-E Control-C | Wing comment selection. |
Control-E Control-B | Box comment selection. |
For details, see the section called “Folding” and the section called “Narrowing”.
Alt-Backspace | Collapse fold containing caret. |
Alt-Enter | Expand fold containing caret one level only. |
Alt-Shift-Enter | Expand fold containing caret fully. |
Control-E X | Expand all folds. |
Control-E A | Add explicit fold. |
Control-E S | Select fold. |
Control-E Enter key | Expand folds with level less than key, collapse all others. |
Control-E N N | Narrow to fold. |
Control-E N S | Narrow to selection. |
Alt-Up Alt-Down | Moves caret to previous; next fold. |
Control-E U | Moves caret to the parent fold of the one containing the caret. |
For details, see Chapter 7.
Control-M Control-R | Record macro. |
Control-M Control-M | Record temporary macro. |
Control-M Control-S | Stop recording. |
Control-M Control-P | Run temporary macro. |
Control-M Control-L | Run most recently played or recorded macro. |
A few frequently-used commands have alternative shortcuts intended to help you keep your hands from moving all over the keyboard.
Alt-J; Alt-L | Move caret to previous, next character. |
Alt-I; Alt-K | Move caret up, down one line. |
Alt-Q; Alt-A | Move caret up, down one screenful. |
Alt-Z | First non-whitespace character of line, beginning of line, first visible line (repeated presses). |
Alt-X | Last non-whitespace character of line, end of line, last visible line (repeated presses). |