我正在使用jshell并希望截断jshell控制台上显示的非常大的消息。
为此,我得到了/ set truncate命令,其中说:
如果值太长,则在显示时会截断它们。使用/ set truncation命令设置为值显示的最大长度。如果未使用该命令输入任何设置,则显示当前设置。
以下是截断的相关选择器类型。
|
| The case selector kind describes the kind of snippet. The values are:
| vardecl -- variable declaration without init
| varinit -- variable declaration with init
| expression -- expression -- note: {name}==scratch-variable-name
| varvalue -- variable value expression
| assignment -- assign variable
| The action selector kind describes what happened to the snippet. The values are:
| added -- snippet has been added
| modified -- an existing snippet has been modified
| replaced -- an existing snippet has been replaced with a new snippet
任何人都可以建议案例选择器或动作选择器的用例??