to.. ELA Web Portal to.. Regular Expressions in jEdit to.. ELA Notes

ELA NOTES - jEdit
( for Complete Documentation, see the jEdit 4.2 User's Guide )

Contents
Import Packages | Shortcut Keys | Text Area Methods |


KEYS - Shortcut
from.. jEdit Help - Appendix A


Keyboard Shortcuts Table of Contents
Alternative Shortcuts |
Clipboard and Registers |
Files | Folding and Narrowing |
Macros | Markers | Moving the Caret |
Repeating |
Scrolling | | Selecting Text | Source Code Editing |
Text Editing |
Views |



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 Global Options Dialog Box".

KEYS - Shortcut) FILES

For details, see "Buffers", "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.
Control-Q Exit jEdit.

KEYS - Shortcut) Views

For details, see "Views".

Control-E Control-T Turn gutter (line numbering) on and off.
Control-2 Split view horizontally.
Control-3 Split view vertically.
Control-1 Unsplit.
Alt-Page Up Go to previous text area.
Alt-Page Down Go to next text area.
Control-E1; 2; 3; 4 Close top; bottom; left; right docking area.

KEYS - Shortcut) Repeating

For details, see "Appendix A. Keyboard Shortcuts" .

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

KEYS - Shortcut) Moving the Caret

For details, see "Moving The Caret", "Working With Words", "Working With Lines", "Working With Paragraphs" and "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-EControl-[; Control-] Go to previous; next bracket.
Control-L Go to line.

KEYS - Shortcut) SelectingText

For details, see "Selecting Text", "Working With Words", "Working With Lines", "Working With Paragraphs" and "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.

KEYS - Shortcut) Scrolling

For details, see "Views".

Control-EControl-J Center current line on screen.
Control-EControl-I Center caret on screen.
Control-'; Control-/ Scroll up; down one line.
Alt-'; Alt-/ Scroll up; down one page.

KEYS - Shortcut) TextEditing

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

Control-Z Undo.
Control-EControl-Z Redo.
Backspace; Delete Delete character before; after caret.
Control-Backspace; Control-Delete Delete word before; after caret.
Control-D; Control-ED Delete line; paragraph.
Control-Shift-Backspace; Control-Shift-Delete Delete from caret to beginning; end of line.
Control-ER Remove trailing whitespace from the current line (or all selected lines).
Control-J Join lines.
Control-B Complete word.
Control-EF Format paragraph (or selection).

KEYS - Shortcut) Clipboard and Registers

For details, see "Transferring Text".

Control-X Cut selected text to clipboard.
Control-C Copy selected text to clipboard.
Control-EControl-U Append selected text to clipboard, removing it from the buffer.
Control-EControl-A Append selected text to clipboard, leaving it in the buffer.
Control-V Paste clipboard contents.
Control-RControl-Xkey Cut selected text to register key.
Control-RControl-Ckey Copy selected text to register key.
Control-RControl-Ukey Append selected text to register key, removing it from the buffer.
Control-RControl-Akey Append selected text to register key, leaving it in the buffer.
Control-RControl-Vkey Paste contents of register key.
Control-EControl-V Paste previous.

KEYS - Shortcut) Markers

For details, see "Markers".

Control-EControl-M If current line doesn't contain a marker, one will be added. Otherwise, the existing marker will be removed. Use the Markersmenu to return to markers added in this manner.
Control-Tkey Add marker with shortcut key.
Control-Ykey Go to marker with shortcut key.
Control-Ukey Select to marker with shortcut key.
Control-Kkey Go to marker with shortcut key, and move the marker to the previous caret position.
Control-EControl-,; Control-. Move caret to previous; next marker.

KEYS - Shortcut) Views

For details, see "Search and Replace".

Control-F Open search and replace dialog box.
Control-G Find next.
Control-H Find previous.
Control-EControl-B Search in open buffers.
Control-EControl-D Search in directory.
Control-EControl-R Replace in selection.
Control-EControl-G 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.

KEYS - Shortcut) Source Code Editing

For details, see "Abbreviations", "Tabbing and Indentation" and "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 Tabwith no selection active will insert a tab character at the caret position.
Control-I Indent current line (or all selected lines).
Control-EControl-C Wing comment selection.
Control-EControl-B Box comment selection.
Folding and Narrowing

For details, see "Folding" and "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-EX Expand all folds.
Control-EA Add explicit fold.
Control-ES Select fold.
Control-EEnterkey Expand folds with level less than key, collapse all others.
Control-ENN Narrow to fold.
Control-ENS Narrow to selection.
Alt-UpAlt-Down Moves caret to previous; next fold.
Control-EU Moves caret to the fold containing the one at the caret position.
Macros

For details, see Chapter 8.

Control-MControl-R Record macro.
Control-MControl-M Record temporary macro.
Control-MControl-S Stop recording.
Control-MControl-P Run temporary macro.
Control-MControl-L 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.

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).

METHODS - Text Area

textArea.getLineStartOffset(selectedLine);

textArea.setCaretPosition(offsetBOL);

textArea.goToBufferStart(false);
textArea.goToEndOfWhiteSpace(true);
textArea.goToNextLine(true);
textArea.goToPrevCharacter(true);
textArea.goToPrevLine(true);
textArea.goToStartOfWhiteSpace(false);


PACKAGES - Import

Java Packages automatically imported

java.awt
java.awt.event
java.netjava.util
java.iojava.lang
javax.swing
javax.swing.event

JEdit Packages automatically imported

org.gjt.sp.jedit
org.gjt.sp.jedit.browser
org.gjt.sp.jedit.buffer
org.gjt.sp.jedit.gui
org.gjt.sp.jedit.io
org.gjt.sp.jedit.msg
org.gjt.sp.jedit.options
org.gjt.sp.jedit.pluginmgr
org.gjt.sp.jedit.search
org.gjt.sp.jedit.syntax
org.gjt.sp.jedit.textarea
org.gjt.sp.util