Home >Java >javaTutorial >What are the different shortcut keys in JShell in Java 9?

What are the different shortcut keys in JShell in Java 9?

PHPz
PHPzforward
2023-08-31 10:09:02747browse

在Java 9中,JShell中有哪些不同的快捷键?

JShell is an interactive tool that allows us to execute Java code and get the results immediately. We can quickly evaluate an expression or short algorithm without compiling or building it. We can use the JShell tool to execute expressions, classes, methods, variables, etc.

The following are some KeyboardShortcut keys:

  • Enter - Verification The row
  • Left arrow - Move left in this row
  • Right arrow - Move right in this row
  • Ctrl-A - Move to the beginning of the line
  • Ctrl-E - Move to the end of the line
  • Alt-B - Move left word by word
  • Alt-F - Move right word by word
  • Delete key - Delete the character after the cursor
  • Backspace - Delete the characters before the cursor
  • Ctrl-k - Delete the characters between the cursor and the end of the line
  • Alt-D - Delete the text after the cursor
  • Ctrl-W - Delete the text before the cursor
  • Ctrl-Y - Restore Recently deleted text

The above shortcut keys are very practical on short codes, but on large codes (such as the creation of methods or classes), we can use the JShell editing panel. It allows us to modify our code very easily.

The above is the detailed content of What are the different shortcut keys in JShell in Java 9?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete