Skip to content

Instantly share code, notes, and snippets.

@mcupak
Created October 13, 2017 21:38
Show Gist options
  • Select an option

  • Save mcupak/100c63de4cd9233d3a45e57b24f96915 to your computer and use it in GitHub Desktop.

Select an option

Save mcupak/100c63de4cd9233d3a45e57b24f96915 to your computer and use it in GitHub Desktop.
jshell> /help shortcuts
|
| shortcuts
|
| Supported shortcuts include:
|
| <tab>
| After entering the first few letters of a Java identifier,
| a jshell command, or, in some cases, a jshell command argument,
| press the <tab> key to complete the input.
| If there is more than one completion, then possible completions will be shown.
| Will show documentation if available and appropriate.
|
| Shift-<tab> v
| After a complete expression, hold down <shift> while pressing <tab>,
| then release and press "v", the expression will be converted to
| a variable declaration whose type is based on the type of the expression.
|
| Shift-<tab> i
| After an unresolvable identifier, hold down <shift> while pressing <tab>,
| then release and press "i", and jshell will propose possible imports
| which will resolve the identifier based on the content of the specified classpath.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment