Java Lab Documentation

Windows: Basic Commands

Category:Java Lab Shortcuts

Examples

Select All Text

Ctrl + a

selects all text in a file

Copy Selected Text

Ctrl + c

copies the selected text

Cut Selected Text

Ctrl + x

cuts the selected text

Paste Selected Text

Ctrl + v

pastes the selected text

Undo the Last Change

Ctrl + z

undo the last change

Redo the Last Change

Ctrl + y

redo the last change

Open the Find/Replace Window

Ctrl + f

open the find/replace window

To close the find/replace window, click Esc or the small x in the top-right corner.

Move Cursor Left, Right, Up, or Down

Arrow Left/Right/Up/Down

moves the cursor left, right, up, or down

Move to the Top or Bottom of a File

Ctrl + Home/End

goes to the top or bottom of a file

Insert a New Line and Indent

Enter

inserts a new line and indents

Insert Two Spaces

Tab

inserts two spaces

Comment Out Selection or Line

Ctrl + /

comments out the current selection or the current line if no selection

Decrease Indent

Ctrl + [

decrease indent

Increase Indent

Ctrl + ]

increase indent

Go to Matching Bracket

Shift + Ctrl + \

go to the matching bracket (only when on a bracket)

Highlight the Current Line

Shift + Home/End

highlights the current line