安装时会有个选项来添加,如下:
勾选即可
安装时未勾选,可以把下面代码中程序路径改为自己的,保存为对应的 idea.reg文件,双击即可
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\IDEA]
@="Open Folder as IDEA"
"Icon"="\"D:\\anzhuang\\IntelliJ IDEA 2022.2.3\\bin\\idea64.exe\""
[HKEY_CLASSES_ROOT\Directory\Background\shell\IDEA\command]
@="\"D:\\anzhuang\\IntelliJ IDEA 2022.2.3\\bin\\idea64.exe\" \"%v\""