美文网首页
jshell 10 如何改变编辑器editor,notepad+

jshell 10 如何改变编辑器editor,notepad+

作者: LeeMin_Z | 来源:发表于2018-07-05 21:14 被阅读43次

需要设置新编辑器所在的绝对路径和执行文件名
例如:
可以用everything找出来,然后设置。

//wrong
jshell> /set editor notepad++
|  编辑器设置为: notepad++

jshell> /edit Test
|  Edit Error: process IO failure: Cannot run program "notepad++": CreateProcess
 error=2, 系统找不到指定的文件。

//correct 
jshell> /set editor C:\Program Files\Notepad++\notepad++.exe
|  编辑器设置为: C:\Program Files\Notepad++\notepad++.exe

jshell> /edit Test
//can open window
test-imag.png

2018.7.5

相关文章

网友评论

      本文标题:jshell 10 如何改变编辑器editor,notepad+

      本文链接:https://www.haomeiwen.com/subject/lfnuuftx.html