June 2017
Beginner
1296 pages
69h 23m
English
In addition to the commands in Fig. 25.6, JShell supports many keyboard shortcuts for editing code, such as quickly jumping to the beginning or end of a line, or jumping between words in a line. JShell’s command-line features are implemented by a library named JLine 2, which provides command-line editing and history capabilites. Figure 25.7 shows a sample of the shortcuts available.
| Shortcut | Description |
|---|---|
| Move cursor to beginning of line. | |
| Move cursor to end of line. | |
| Move the cursor backwards by one word. | |
| Move the cursor forwards by one word. | |
| Perform a search for the last command or snippet containing the characters you type after typing |