idea运行java
可以cmd窗口,javac hello.java 类名和文件名要一致
右边运行窗口
乱码:选择 文件 -> 首选项 -> 设置,打开VS Code设置页面,找到 Run Code configuration,去掉/勾选 Run In Terminal 选项。设置
notepad
其中D:\\anzhuangbao\\notepad\\notepad\是notepad的安装位置
新建文件,写入:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\NotePad++]
@="Edit with &Notepad++"
"Icon"="D:\\anzhuangbao\\notepad\\notepad\\notepad++.exe"
[HKEY_CLASSES_ROOT\*\shell\NotePad++\Command]
@="D:\\anzhuangbao\\notepad\\notepad\\notepad++.exe \"%1\""
保存后,后缀名改成.reg,双击运行就可以
命令窗口
OpenCmdHere.reg
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\OpenCmdHere]
@="open cmd window"
"Icon"="cmd.exe"
[HKEY_CLASSES_ROOT\Directory\shell\OpenCmdHere\command]
@="cmd.exe /s /k pushd "%V""
[HKEY_CLASSES_ROOT\Directory\Background\shell\OpenCmdHere]
@="open cmd window"
"Icon"="cmd.exe"
[HKEY_CLASSES_ROOT\Directory\Background\shell\OpenCmdHere\command]
@="cmd.exe /s /k pushd \"%V\""
[HKEY_CLASSES_ROOT\Drive\shell\OpenCmdHere]
@="open cmd window"
"Icon"="cmd.exe"
[HKEY_CLASSES_ROOT\Drive\shell\OpenCmdHere\command]
@="cmd.exe /s /k pushd \"%V\""
[HKEY_CLASSES_ROOT\LibraryFolder\background\shell\OpenCmdHere]
@="open cmd window"
"Icon"="cmd.exe"
[HKEY_CLASSES_ROOT\LibraryFolder\background\shell\OpenCmdHere\command]
@="cmd.exe /s /k pushd \"%V\""