Select Page

Jedit shortcuts reference

Keyboard Shortcuts

Files

ControlN New file.
ControlO Open file.
ControlW Close buffer.
ControlE ControlW Close all buffers.
ControlS Save buffer.
ControlE ControlS Save all buffers.
ControlP Print buffer.
ControlPage Up Go to previous buffer.
ControlPage Down Go to next buffer.
Control` Go to recent buffer.
ControlQ Exit jEdit.

Views

ControlE ControlT Turn gutter (line numbering) on and off.
Control2 Split view horizontally.
Control3 Split view vertically.
Control1 Unsplit.
AltPage Up Send keyboard focus to previous text area.
AltPage Down Send keyboard focus to next text area.
ControlE ControlUp; ControlLeft; ControlDown; ControlRight Send keyboard focus to top; bottom; left; right docking area.
ControlE Control` Close currently focused docking area.
ControlE ControlE Send keyboard focus back to current text area.

Repeating

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

Moving the Caret

Arrow Move caret one character or line.
ControlArrow 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).
ControlHome Beginning of buffer.
ControlEnd End of buffer.
Control] Go to matching bracket.
ControlE Control[; Control] Go to previous; next bracket.
ControlL Go to line.

Selecting Text

ShiftArrow Extend selection by one character or line.
ControlShiftArrow Extend selection by one word or paragraph.
ShiftPage Up; ShiftPage Down Extend selection by one screenful.
ShiftHome Extend selection to first non-whitespace character of line, beginning of line, first visible line (repeated presses).
ShiftEnd Extend selection to last non-whitespace character of line, end of line, last visible line (repeated presses).
ControlShiftHome Extend selection to beginning of buffer.
ControlShiftEnd Extend selection to end of buffer.
Control[ Select code block.
ControlE W; L; P Select word; line; paragraph.
ControlE ControlL Select line range.
Control\ Switch between single and multiple selection mode.

Scrolling

ControlE ControlJ Center current line on screen.
ControlE ControlI Center caret on screen.
Control; Control/ Scroll up; down one line.
Alt; Alt/ Scroll up; down one page.

Text Editing

ControlZ Undo.
ControlE ControlZ Redo.
Backspace; Delete Delete character before; after caret.
ControlBackspace; ControlDelete Delete word before; after caret.
ControlD; ControlE D Delete line; paragraph.
ControlShiftBackspace; ControlShiftDelete Delete from caret to beginning; end of line.
ControlE R Remove trailing whitespace from the current line (or all selected lines).
ControlJ Join lines.
ControlB Complete word.
ControlE F Format paragraph (or selection).

Clipboard and Registers

ControlX or ShiftDelete Cut selected text to clipboard.
ControlC or ControlInsert Copy selected text to clipboard.
ControlE ControlU Append selected text to clipboard, removing it from the buffer.
ControlE ControlA Append selected text to clipboard, leaving it in the buffer.
ControlV or ShiftInsert Paste clipboard contents.
ControlE ControlP Vertical paste clipboard contents.
ControlR ControlX key Cut selected text to register key.
ControlR ControlC key Copy selected text to register key.
ControlR ControlU key Append selected text to register key, removing it from the buffer.
ControlR ControlA key Append selected text to register key, leaving it in the buffer.
ControlR ControlV key Paste contents of register key.
ControlR ControlP key Vertically paste contents of register key.
ControlE ControlV Paste previous.

Markers

ControlE ControlM 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.
ControlT key Add marker with shortcut key.
ControlY key Go to marker with shortcut key.
ControlU key Select to marker with shortcut key.
ControlK key Go to marker with shortcut key, and move the marker to the previous caret position.
ControlE Control,; Control. Move caret to previous; next marker.

Search and Replace

ControlF Open search and replace dialog box.
ControlG Find next.
ControlH Find previous.
ControlE ControlB Search in open buffers.
ControlE ControlD Search in directory.
ControlE ControlR Replace in selection.
ControlE ControlG Replace in selection and find next.
Control, Incremental search.
Control. Quick HyperSearch.
Alt, Incremental search for word under the caret.
Alt. Quick HyperSearch for word under the caret.

Source Code Editing

Control; Expand abbreviation.
AltLeft; AltRight Shift current line (or all selected lines) left; right.
ShiftTab; Tab Shift selected lines left; right. Note that pressing Tab with no selection active will insert a tab character at the caret position.
ControlI Indent current line (or all selected lines).
ControlE ControlC Wing comment selection.
ControlE ControlB Box comment selection.

Folding and Narrowing

AltBackspace Collapse fold containing caret.
AltEnter Expand fold containing caret one level only.
AltShiftEnter Expand fold containing caret fully.
ControlE X Expand all folds.
ControlE A Add explicit fold.
ControlE S Select fold.
ControlE Enter key Expand folds with level less than key, collapse all others.
ControlE N N Narrow to fold.
ControlE N S Narrow to selection.
AltUp AltDown Moves caret to previous; next fold.
ControlE U Moves caret to the fold containing the one at the caret position.

Macros

ControlM ControlR Record macro.
ControlM ControlM Record temporary macro.
ControlM ControlS Stop recording.
ControlM ControlP Run temporary macro.
ControlM ControlL Run 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.

AltJ; AltL Move caret to previous, next character.
AltI; AltK Move caret up, down one line.
AltQ; AltA Move caret up, down one screenful.
AltZ First non-whitespace character of line, beginning of line, first visible line (repeated presses).
AltX Last non-whitespace character of line, end of line, last visible line (repeated presses).

Glob Patterns

jEdit uses glob patterns similar to those in the various Unix shells to implement file name filters in the file system browser. Glob patterns resemble regular expressions somewhat, but have a much simpler syntax. The following character sequences have special meaning within a glob pattern:

  • ? matches any one character
  • * matches any number of characters
  • {!glob} Matches anything that does not match glob
  • {a,b,c} matches any one of a, b or c
  • [abc] matches any character in the set a, b or c
  • [^abc] matches any character not in the set a, b or c
  • [a-z] matches any character in the range a to z, inclusive. A leading or trailing dash will be interpreted literally

In addition to the above, a number of "character class expressions" may be used as well:

  • [[:alnum:]] matches any alphanumeric character
  • [[:alpha:]] matches any alphabetical character
  • [[:blank:]] matches a space or horizontal tab
  • [[:cntrl:]] matches a control character
  • [[:digit:]] matches a decimal digit
  • [[:graph:]] matches a non-space, non-control character
  • [[:lower:]] matches a lowercase letter
  • [[:print:]] same as [:graph:], but also space and tab
  • [[:punct:]] matches a punctuation character
  • [[:space:]] matches any whitespace character, including newlines
  • [[:upper:]] matches an uppercase letter
  • [[:xdigit:]] matches a valid hexadecimal digit

Here are some examples of glob patterns:

  • * – all files
  • *.java – all files whose names end with ".java"
  • *.{c,h} – all files whose names end with either ".c" or ".h"
  • *[^~] – all files whose names do not end with "~"

 Regular Expressions

jEdit uses regular expressions to implement inexact search and replace. A regular expression consists of a string where some characters are given special meaning with regard to pattern matching.

Within a regular expression, the following characters have special meaning:

Positional Operators

  • ^ matches at the beginning of a line
  • $ matches at the end of a line
  • \b matches at a word break
  • \B matches at a non-word break
  • \< matches at the start of a word
  • \> matches at the end of a word

One-Character Operators

  • . matches any single character
  • \d matches any decimal digit
  • \D matches any non-digit
  • \n matches the newline character
  • \s matches any whitespace character
  • \S matches any non-whitespace character
  • \t matches a horizontal tab character
  • \w matches any word (alphanumeric) character
  • \W matches any non-word (alphanumeric) character
  • \\ matches the backslash ("\") character

Character Class Operator

  • [abc] matches any character in the set a, b or c
  • [^abc] matches any character not in the set a, b or c
  • [a-z] matches any character in the range a to z, inclusive. A leading or trailing dash will be interpreted literally
  • [[:alnum:]] matches any alphanumeric character
  • [[:alpha:]] matches any alphabetical character
  • [[:blank:]] matches a space or horizontal tab
  • [[:cntrl:]] matches a control character
  • [[:digit:]] matches a decimal digit
  • [[:graph:]] matches a non-space, non-control character
  • [[:lower:]] matches a lowercase letter
  • [[:print:]] same as [:graph:], but also space and tab
  • [[:punct:]] matches a punctuation character
  • [[:space:]] matches any whitespace character, including newlines
  • [[:upper:]] matches an uppercase letter
  • [[:xdigit:]] matches a valid hexadecimal digit

Subexpressions and Backreferences

  • (abc) matches whatever the expression abc would match, and saves it as a subexpression. Also used for grouping
  • (?:...) pure grouping operator, does not save contents
  • (?#...) embedded comment, ignored by engine
  • (?=...) positive lookahead; the regular expression will match if the text in the brackets matches, but that text will not be considered part of the match
  • (?!...) negative lookahead; the regular expression will match if the text in the brackets does not match, and that text will not be considered part of the match
  • \n where 0 < n < 10, matches the same thing the nth subexpression matched. Can only be used in the search string
  • $n where 0 < n < 10, substituted with the text matched by the nth subexpression. Can only be used in the replacement string

Branching (Alternation) Operator

  • a|b matches whatever the expression a would match, or whatever the expression b would match.

Repeating Operators

These symbols operate on the previous atomic expression.

  • ? matches the preceding expression or the null string
  • * matches the null string or any number of repetitions of the preceding expression
  • + matches one or more repetitions of the preceding expression
  • {m} matches exactly m repetitions of the one-character expression
  • {m,n} matches between m and n repetitions of the preceding expression, inclusive
  • {m,} matches m or more repetitions of the preceding expression

Stingy (Minimal) Matching

If a repeating operator (above) is immediately followed by a ?, the repeating operator will stop at the smallest number of repetitions that can complete the rest of the match.

About The Author

Cédric Walter

I worked with various Insurances companies across Switzerland on online applications handling billion premium volumes. I love to continuously spark my creativity in many different and challenging open-source projects fueled by my great passion for innovation and blockchain technology. In my technical role as a senior software engineer and Blockchain consultant, I help to define and implement innovative solutions in the scope of both blockchain and traditional products, solutions, and services. I can support the full spectrum of software development activities, starting from analyzing ideas and business cases and up to the production deployment of the solutions. I'm the Founder and CEO of Disruptr GmbH.

Categories

brands

 
 
Cordalo simplify writing Corda applications.
 
tokens-economy.com is a blog / digital playground where Cédric keep track of new developments in the distributed ledger technology space and present all his experimentation and tools, promoting the understanding of digital currencies and assets.
 
Galaxiis premium joomla extensions and plugins
 
Supercars-central.com is a blog about the Audi R8 Spyder V10 and more...