简体   繁体   English

Java 9-如何在Jshell上查看帮助?

[英]Java 9 - How to see help on Jshell?

Anybody here familiar with any good documentation on how could we work with jshell. 这里的任何人熟悉关于如何使用jshell的任何优秀文档。 I am struggling even to find help for same inside the jshell. 我甚至在jshell内也很难找到同样的帮助。 Any good reference will work too. 任何良好的参考也将起作用。

In console when you run jshell just type /help 在控制台中,当您运行jshell时,只需键入/help

Also you may see verbose description and options for single command by type help before command in console, example: jshell> /help /list 另外,您可能会在控制台中通过在命令之前键入help来查看单个命令的详细说明和选项,例如: jshell> /help /list

From the documentation : 文档中

Tab Completion for Commands 命令的制表符完成

Similar to snippet completion, when you enter commands and command options, use the Tab key to automatically complete the command or option. 与代码段完成类似,当您输入命令和命令选项时,请使用Tab键自动完成命令或选项。 If the completion can't be determined from what was entered, then possible choices are provided. 如果无法根据输入的内容确定完成,则提供可能的选择。

The following example shows the feedback when Tab is pressed after the leading slash (/) for commands: 以下示例显示了在命令的前斜杠(/)之后按下Tab时的反馈:

 jshell> /<Tab> /! /? /drop /edit /env /exit /help /history /imports /list /methods /open /reload /reset /save /set /types /vars <press tab again to see synopsis> jshell> / 

Well though you got a answer, I think anybody will get almost all information from oracle docs for REPL ie JSHELL 好吧,尽管您得到了答案,但我认为任何人都将从REPS的oracle文档中获得几乎所有信息, 即JSHELL

This is a really nice documentation. 这是一个非常好的文档。

Also, we have another good documentation here 另外,我们在这里还有另一个很好的文档

I prefer docs in PDF than reading in CMD. 与在CMD中阅读相比,我更喜欢PDF中的文档。 It is same as it is on the online documentation from Oracle. 它与Oracle在线文档中的内容相同。

Java Shell User's Guide - Oracle Java Shell用户指南-Oracle

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM