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
Release: 2023-08-31 10:09:02
forward
750 people have browsed it

在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!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template