577 and edit snippets and commands. The current command/snippet can be edited,\n\ |
577 and edit snippets and commands. The current command/snippet can be edited,\n\ |
578 or prior commands/snippets can be retrieved from history, edited, and executed.\n\ |
578 or prior commands/snippets can be retrieved from history, edited, and executed.\n\ |
579 This support is similar to readline/editline with simple emacs-like bindings.\n\ |
579 This support is similar to readline/editline with simple emacs-like bindings.\n\ |
580 There are also jshell tool specific key sequences.\n\ |
580 There are also jshell tool specific key sequences.\n\ |
581 \n\ |
581 \n\ |
582 --- Line and history navigation ---\n\ |
582 Line and history navigation:\n\ |
583 \n\ |
583 \n\t\ |
584 Return\n\t\ |
584 Return\n\t\t\ |
585 Enters the current snippet\n\ |
585 Enters the current snippet\n\t\ |
586 Left-arrow or Ctrl+B\n\t\ |
586 Left-arrow or Ctrl+B\n\t\t\ |
587 Moves backward one character\n\ |
587 Moves backward one character\n\t\ |
588 Right-arrow or Ctrl+F\n\t\ |
588 Right-arrow or Ctrl+F\n\t\t\ |
589 Moves forward one character\n\ |
589 Moves forward one character\n\t\ |
590 Up-arrow or Ctrl+P\n\t\ |
590 Up-arrow or Ctrl+P\n\t\t\ |
591 Moves up one line, backward through history\n\ |
591 Moves up one line, backward through history\n\t\ |
592 Down arrow or Ctrl+N\n\t\ |
592 Down arrow or Ctrl+N\n\t\t\ |
593 Moves down one line, forward through history\n\ |
593 Moves down one line, forward through history\n\t\ |
594 Ctrl+A\n\t\ |
594 Ctrl+A\n\t\t\ |
595 Moves to the beginning of the line\n\ |
595 Moves to the beginning of the line\n\t\ |
596 Ctrl+E\n\t\ |
596 Ctrl+E\n\t\t\ |
597 Moves to the end of the line\n\ |
597 Moves to the end of the line\n\t\ |
598 Meta+B\n\t\ |
598 Meta+B\n\t\t\ |
599 Moves backward one word\n\ |
599 Moves backward one word\n\t\ |
600 Meta+F\n\t\ |
600 Meta+F\n\t\t\ |
601 Moves forward one word\n\ |
601 Moves forward one word\n\t\ |
602 Ctrl+R\n\t\ |
602 Ctrl+R\n\t\t\ |
603 Search backward through history\n\ |
603 Search backward through history\n\ |
604 \n\ |
604 \n\ |
605 \n\ |
605 \n\ |
606 --- Line and history basic editing ---\n\ |
606 Line and history basic editing:\n\ |
607 \n\ |
607 \n\t\ |
608 Meta+Return or Ctrl+Return (depending on platform)\n\t\ |
608 Meta+Return or Ctrl+Return (depending on platform)\n\t\t\ |
609 Insert a new line in snippet\n\ |
609 Insert a new line in snippet\n\t\ |
610 Ctrl+_ (underscore may require shift key) or Ctrl+X then Ctrl+U\n\t\ |
610 Ctrl+_ (underscore may require the Shift key) or Ctrl+X then Ctrl+U\n\t\t\ |
611 Undo edit - repeat to undo more edits\n\ |
611 Undo edit - repeat to undo more edits\n\t\ |
612 Delete\n\t\ |
612 Delete\n\t\t\ |
613 Deletes the character at or after the cursor, depending on the operating system\n\ |
613 Deletes the character at or after the cursor, depending on the operating system\n\t\ |
614 Backspace\n\t\ |
614 Backspace\n\t\t\ |
615 Deletes the character before the cursor\n\ |
615 Deletes the character before the cursor\n\t\ |
616 Ctrl+K\n\t\ |
616 Ctrl+K\n\t\t\ |
617 Deletes the text from the cursor to the end of the line\n\ |
617 Deletes the text from the cursor to the end of the line\n\t\ |
618 Meta+D\n\t\ |
618 Meta+D\n\t\t\ |
619 Deletes the text from the cursor to the end of the word\n\ |
619 Deletes the text from the cursor to the end of the word\n\t\ |
620 Ctrl+W\n\t\ |
620 Ctrl+W\n\t\t\ |
621 Deletes the text from the cursor to the previous white space\n\ |
621 Deletes the text from the cursor to the previous white space\n\t\ |
622 Ctrl+Y\n\t\ |
622 Ctrl+Y\n\t\t\ |
623 Pastes the most recently deleted text into the line\n\ |
623 Pastes the most recently deleted text into the line\n\t\ |
624 Meta+Y\n\t\ |
624 Meta+Y\n\t\t\ |
625 After Ctrl+Y, Meta+Y cycles through previously deleted text\n\ |
625 After Ctrl+Y, Meta+Y cycles through previously deleted text\n\t\ |
626 Ctrl+X then Ctrl+K\n\t\ |
626 Ctrl+X then Ctrl+K\n\t\t\ |
627 Delete whole snippet\n\ |
627 Delete whole snippet\n\ |
628 \n\ |
628 \n\ |
629 \n\ |
629 \n\ |
630 --- Shortcuts for jshell tool ---\n\ |
630 Shortcuts for jshell tool:\n\ |
631 \n\ |
631 \n\t\ |
632 For details, see: /help shortcuts\n\ |
632 For details, see: /help shortcuts\n\ |
633 \n\ |
633 \n\t\ |
634 Tab\n\t\ |
634 Tab\n\t\t\ |
635 Complete Java identifier or jshell command\n\ |
635 Complete Java identifier or jshell command\n\t\ |
636 Shift+Tab then v\n\t\ |
636 Shift+Tab then v\n\t\t\ |
637 Convert expression to variable declaration\n\ |
637 Convert expression to variable declaration\n\t\ |
638 Shift+Tab then m\n\t\ |
638 Shift+Tab then m\n\t\t\ |
639 Convert statement to method declaration\n\ |
639 Convert statement to method declaration\n\t\ |
640 Shift+Tab then i\n\t\ |
640 Shift+Tab then i\n\t\t\ |
641 Add imports for this identifier\n\ |
641 Add imports for this identifier\n\t\ |
642 \n\ |
642 \n\ |
643 \n\ |
643 \n\ |
644 --- More line and history editing ---\n\ |
644 More line and history editing:\n\ |
645 \n\ |
645 \n\t\ |
646 Ctrl+L\n\t\ |
646 Ctrl+L\n\t\t\ |
647 Clear screen and reprint snippet\n\ |
647 Clear screen and reprint snippet\n\t\ |
648 Ctrl+U\n\t\ |
648 Ctrl+U\n\t\t\ |
649 Kill whole line\n\ |
649 Kill whole line\n\t\ |
650 Ctrl+T\n\t\ |
650 Ctrl+T\n\t\t\ |
651 Transpose characters\n\ |
651 Transpose characters\n\t\ |
652 Ctrl+X then Ctrl+B\n\t\ |
652 Ctrl+X then Ctrl+B\n\t\t\ |
653 Navigate to matching bracket, parenthesis, ...\n\ |
653 Navigate to matching bracket, parenthesis, ...\n\t\ |
654 Ctrl+X then =\n\t\ |
654 Ctrl+X then =\n\t\t\ |
655 Enter show current character position mode\n\ |
655 Enter show current character position mode\n\t\ |
656 Ctrl+X then Ctrl+O\n\t\ |
656 Ctrl+X then Ctrl+O\n\t\t\ |
657 Toggle overwrite characters vs insert characters\n\ |
657 Toggle overwrite characters vs insert characters\n\t\ |
658 Meta+C\n\t\ |
658 Meta+C\n\t\t\ |
659 Capitalize word\n\ |
659 Capitalize word\n\t\ |
660 Meta+U\n\t\ |
660 Meta+U\n\t\t\ |
661 Convert word to uppercase\n\ |
661 Convert word to uppercase\n\t\ |
662 Meta+L\n\t\ |
662 Meta+L\n\t\t\ |
663 Convert word to lowercase\n\ |
663 Convert word to lowercase\n\t\ |
664 Meta+0 through Meta+9 then key\n\t\ |
664 Meta+0 through Meta+9 then key\n\t\t\ |
665 Repeat the specified number of times\n\ |
665 Repeat the specified number of times\n\ |
666 \n\ |
666 \n\ |
667 Where, for example, "Ctrl+A" means hold down the control key and press A.\n\ |
667 Where, for example, "Ctrl+A" means hold down the Control key and press A.\n\ |
668 Where "Meta" is "Alt" on many keyboards.\n\ |
668 Where "Meta" is "Alt" on many keyboards.\n\ |
669 Line editing support is derived from JLine 3. |
669 Line editing support is derived from JLine 3. |
670 |
670 |
671 help.shortcuts.summary = a description of keystrokes for snippet and command completion,\n\ |
671 help.shortcuts.summary = a description of keystrokes for snippet and command completion,\n\ |
672 information access, and automatic code generation |
672 information access, and automatic code generation |
673 help.shortcuts =\ |
673 help.shortcuts =\ |
674 Supported shortcuts include:\n\ |
674 Supported shortcuts include:\n\ |
675 \n\ |
675 \n\t\ |
676 <tab>\n\t\t\ |
676 Tab\n\t\t\ |
677 After entering the first few letters of a Java identifier,\n\t\t\ |
677 After entering the first few letters of a Java identifier,\n\t\t\ |
678 a jshell tool command, or, in some cases, a jshell tool command argument,\n\t\t\ |
678 a jshell tool command, or, in some cases, a jshell tool\n\t\t\ |
679 press the <tab> key to complete the input.\n\t\t\ |
679 command argument, press the Tab key to complete the input.\n\t\t\ |
680 If there is more than one completion, then possible completions will be shown.\n\t\t\ |
680 If there is more than one completion, then possible completions\n\t\t\ |
681 Will show documentation if available and appropriate.\n\n\ |
681 will be shown.\n\t\t\ |
682 Shift-<tab> v\n\t\t\ |
682 Another Tab will show documentation if available and appropriate.\n\n\t\ |
683 After a complete expression, hold down <shift> while pressing <tab>,\n\t\t\ |
683 Shift+Tab then v\n\t\t\ |
684 then release and press "v", the expression will be converted to\n\t\t\ |
684 After a complete expression, hold down the Shift key while\n\t\t\ |
685 a variable declaration whose type is based on the type of the expression.\n\n\ |
685 pressing the Tab key, then release and press the "v" key,\n\t\t\ |
686 Shift-<tab> m\n\t\t\ |
686 the expression will be converted to a variable declaration \n\t\t\ |
687 After a complete expression or statement, hold down <shift> while pressing <tab>,\n\t\t\ |
687 whose type is based on the type of the expression.\n\n\t\ |
688 then release and press "m", the expression or statement will be converted to\n\t\t\ |
688 Shift+Tab then m\n\t\t\ |
689 a method declaration. If an expression, the return type is based on the type\n\t\t\ |
689 After a complete expression or statement, hold down the\n\t\t\ |
690 of the expression.\n\n\ |
690 Shift key while pressing the Tab key, then release and press\n\t\t\ |
691 Shift-<tab> i\n\t\t\ |
691 the "m" key, the expression or statement will be converted\n\t\t\ |
692 After an unresolvable identifier, hold down <shift> while pressing <tab>,\n\t\t\ |
692 to a method declaration. If it is an expression, the method\n\t\t\ |
693 then release and press "i", and the jshell tool will propose possible imports\n\t\t\ |
693 return type will be based on the type of the expression.\n\n\t\ |
694 which will resolve the identifier based on the content of the specified classpath. |
694 Shift+Tab then i\n\t\t\ |
|
695 After an unresolvable identifier, hold down the Shift key\n\t\t\ |
|
696 while pressing the Tab key, then release and press the "i" key,\n\t\t\ |
|
697 and the jshell tool will propose possible imports which will\n\t\t\ |
|
698 resolve the identifier based on the content of the specified\n\t\t\ |
|
699 classpath. Enter the digit corresponding to the desired import,\n\t\t\ |
|
700 or press the "0" key to add no imports.\n\ |
|
701 \n\ |
|
702 For information onother special keys see: /help keys |
695 |
703 |
696 help.context.summary = a description of the evaluation context options for /env /reload and /reset |
704 help.context.summary = a description of the evaluation context options for /env /reload and /reset |
697 help.context =\ |
705 help.context =\ |
698 These options configure the evaluation context. They can be specified on the\n\ |
706 These options configure the evaluation context. They can be specified on the\n\ |
699 command-line when the jshell tool is started or as command options when the jshell tool is\n\ |
707 command-line when the jshell tool is started or as command options when the jshell tool is\n\ |