Java Lab Documentation

Mac: Advanced Commands

Category:Java Lab Shortcuts

Examples

Move Line Up or Down

Option + Arrow Up/Down

moves the line up or down

Move Cursor to Next or Previous Grouping on the Line

Option + Arrow Left/Right

Alt + Arrow Left/Right

moves the cursor to the next or previous logical grouping on the line

For example, if the line is System.out.println("hello"); and you start the cursor at the front of the line, it will move over each . then to ( then over each " then to the end of the line.

Delete the Previous Grouping

Option + Delete

deletes the previous logical grouping

Delete the Next Grouping

Function (fn) + Option + Delete

deletes the next logical grouping