修改注册表,添加鼠标右键
选择文件
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\VSCode]
@="Open with Code"
"Icon"="D:\\VSCode\\Code.exe"
[HKEY_CLASSES_ROOT\*\shell\VSCode\command]
@="\"D:\\VSCode\\Code.exe\" \"%1\""
选择目录
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\VSCode]
@="Open with Code"
"Icon"="D:\\VSCode\\Code.exe"
[HKEY_CLASSES_ROOT\Directory\shell\VSCode\command]
@="\"D:\\VSCode\\Code.exe\" \"%V\""
目录空白处
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\VSCode]
@="Open with Code"
"Icon"="D:\\VSCode\\Code.exe"
[HKEY_CLASSES_ROOT\Directory\Background\shell\VSCode\command]
@="\"D:\\VSCode\\Code.exe\" \"%V\""
Atom的类似
文件
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\Atom]
@="Open with Atom"
"Icon"="\"C:\\Users\\Administrator\\AppData\\Local\\atom\\app.ico\""
[HKEY_CLASSES_ROOT\*\shell\Atom\command]
@="\"C:\\Users\\Administrator\\AppData\\Local\\atom\\app-1.11.1\\atom.exe\" \"%1\""
目录
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\Atom]
@="Open with Atom"
"Icon"="\"C:\\Users\\Administrator\\AppData\\Local\\atom\\app.ico\""
[HKEY_CLASSES_ROOT\Directory\shell\Atom\command]
@="\"C:\\Users\\Administrator\\AppData\\Local\\atom\\app-1.11.1\\atom.exe\" \"%1\""
目录空白处
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\Atom]
@="Open with Atom"
"Icon"="\"C:\\Users\\Administrator\\AppData\\Local\\atom\\app.ico\""
[HKEY_CLASSES_ROOT\Directory\Background\shell\Atom\command]
@="\"C:\\Users\\Administrator\\AppData\\Local\\atom\\app-1.11.1\\atom.exe\" \"%V\""