Appendix A. Keyboard Shortcuts

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 Section , “The Global Options Dialog Box”.

Files

For details, see Section , “Buffers”, Section , “Views” and Chapter 3, Working With Files.

Control-NNew file.
Control-OOpen file.
Control-WClose buffer.
Control-E Control-WClose all buffers.
Control-SSave buffer.
Control-E Control-SSave all buffers.
Control-PPrint buffer.
Control-Page UpGo to previous buffer.
Control-Page DownGo to next buffer.
Control-`Go to recent buffer.
Alt-`Show buffer switcher.
Control-QExit jEdit.

Views

For details, see Section , “Views”.

Control-E Control-TTurn gutter (line numbering) on and off.
Control-0Remove split containing current text area only.
Control-1Remove all splits.
Control-2Split view horizontally.
Control-3Split view vertically.
Alt-Page UpSend keyboard focus to previous text area.
Alt-Page DownSend keyboard focus to next text area.
Control-E Control-Up; Control-Left; Control-Down; Control-RightSend keyboard focus to top; bottom; left; right docking area.
Control-E Control-`Close currently focused docking area.
Control-E Control-ESend keyboard focus back to current text area.

Repeating

For details, see Section , “Command Repetition”.

Control-EnternumbercommandRepeat the command (it can be a keystroke, menu item selection or tool bar click) the specified number of times.

Moving the Caret

For details, see Section , “Moving The Caret”, Section , “Working With Words”, Section , “Working With Lines”, Section , “Working With Paragraphs” and Section , “Bracket Matching”.

ArrowMove caret one character or line.
Control-ArrowMove caret one word or paragraph.
Page Up; Page DownMove caret one screenful.
HomeFirst non-whitespace character of line, beginning of line, first visible line (repeated presses).
EndLast non-whitespace character of line, end of line, last visible line (repeated presses).
Control-HomeBeginning of buffer.
Control-EndEnd of buffer.
Control-]Go to matching bracket.
Control-E Control-[; Control-]Go to previous; next bracket.
Control-LGo to line.

Selecting Text

For details, see Section , “Selecting Text”, Section , “Working With Words”, Section , “Working With Lines”, Section , “Working With Paragraphs” and Section , “Bracket Matching”.

Shift-ArrowExtend selection by one character or line.
Control-Shift-ArrowExtend selection by one word or paragraph.
Shift-Page Up; Shift-Page DownExtend selection by one screenful.
Shift-HomeExtend selection to first non-whitespace character of line, beginning of line, first visible line (repeated presses).
Shift-EndExtend selection to last non-whitespace character of line, end of line, last visible line (repeated presses).
Control-Shift-HomeExtend selection to beginning of buffer.
Control-Shift-EndExtend selection to end of buffer.
Control-[Select code block.
Control-E W; L; PSelect word; line; paragraph.
Control-E Control-LSelect line range.
Control-\Switch between single and multiple selection mode.

Scrolling

For details, see Section , “Views”.

Control-E Control-JEnsure current line is visible.
Control-E Control-ICenter caret on screen.
Control-'; Control-/Scroll up; down one line.
Alt-'; Alt-/Scroll up; down one page.

Text Editing

For details, see Section , “Undo and Redo”, Section , “Inserting and Deleting Text”, Section , “Working With Words”, Section , “Working With Lines” and Section , “Working With Paragraphs”.

Control-ZUndo.
Control-E Control-ZRedo.
Backspace; DeleteDelete character before; after caret.
Control-Backspace; Control-DeleteDelete word before; after caret.
Control-D; Control-E DDelete line; paragraph.
Control-Shift-Backspace; Control-Shift-DeleteDelete from caret to beginning; end of line.
Control-E RRemove trailing whitespace from the current line (or all selected lines).
Control-JJoin lines.
Control-BComplete word.
Control-E FFormat paragraph (or selection).

Clipboard and Registers

For details, see Section , “Transferring Text”.

Control-X or Shift-DeleteCut selected text to clipboard.
Control-C or Control-InsertCopy selected text to clipboard.
Control-E Control-UAppend selected text to clipboard, removing it from the buffer.
Control-E Control-AAppend selected text to clipboard, leaving it in the buffer.
Control-V or Shift-InsertPaste clipboard contents.
Control-E Control-PVertically paste clipboard contents.
Control-R Control-X keyCut selected text to register key.
Control-R Control-C keyCopy selected text to register key.
Control-R Control-U keyAppend selected text to register key, removing it from the buffer.
Control-R Control-A keyAppend selected text to register key, leaving it in the buffer.
Control-R Control-V keyPaste contents of register key.
Control-R Control-P keyVertically paste contents of register key.
Control-E Control-VPaste previous.

Markers

For details, see Section , “Markers”.

Control-E Control-MIf 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 keyAdd marker with shortcut key.
Control-Y keyGo to marker with shortcut key.
Control-U keySelect to marker with shortcut key.
Control-K keyGo to marker with shortcut key, and move the marker to the previous caret position.
Control-E Control-,; Control-.Move caret to previous; next marker.

Search and Replace

For details, see Section , “Search and Replace”.

Control-FOpen search and replace dialog box.
Control-GFind next.
Control-HFind previous.
Control-E Control-BSearch in open buffers.
Control-E Control-DSearch in directory.
Control-E Control-RReplace in selection.
Control-E Control-GReplace 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.

Source Code Editing

For details, see Section , “Abbreviations”, Section , “Tabbing and Indentation” and Section , “Commenting Out Code”.

Control-;Expand abbreviation.
Alt-Left; Alt-RightShift current line (or all selected lines) left; right.
Shift-Tab; TabShift selected lines left; right. Note that pressing Tab with no selection active will insert a tab character at the caret position.
Control-IIndent current line (or all selected lines).
Control-E Control-CWing comment selection.
Control-E Control-BBox comment selection.

Folding and Narrowing

For details, see Section , “Folding” and Section , “Narrowing”.

Alt-BackspaceCollapse fold containing caret.
Alt-EnterExpand fold containing caret one level only.
Alt-Shift-EnterExpand fold containing caret fully.
Control-E XExpand all folds.
Control-E AAdd explicit fold.
Control-E SSelect fold.
Control-E Enter keyExpand folds with level less than key, collapse all others.
Control-E N NNarrow to fold.
Control-E N SNarrow to selection.
Alt-Up Alt-DownMoves caret to previous; next fold.
Control-E UMoves caret to the parent fold of the one containing the caret.

Macros

For details, see Chapter 7, Using Macros.

Control-M Control-RRecord macro.
Control-M Control-MRecord temporary macro.
Control-M Control-SStop recording.
Control-M Control-PRun temporary macro.
Control-M Control-LRun most recently played or recorded macro.

Alternative Shortcuts

A few frequently-used commands have alternative shortcuts intended to help you keep your hands from moving all over the keyboard.

Alt-J; Alt-LMove caret to previous, next character.
Alt-I; Alt-KMove caret up, down one line.
Alt-Q; Alt-AMove caret up, down one screenful.
Alt-ZFirst non-whitespace character of line, beginning of line, first visible line (repeated presses).
Alt-XLast non-whitespace character of line, end of line, last visible line (repeated presses).