1. Win+R 输入regedit
2.\HKEY_CLASSES_ROOT\*\shell:
新增项:vscode, 双击右侧默认,输入open vscode (whatever)
新增可扩充字符串icon :双击输入值:"path/code.exe"
在vscode下新增项:command,双击值输入:"path/code.exe""%1"
3. \HKEY_CLASSES_ROOT\Directory\shell:
新增项:vscode, 双击右侧默认,输入open vscode (whatever)
新增可扩充字符串icon :双击输入值:"path/code.exe"
在vscode下新增项:command,双击值输入:"path/code.exe""%1"
4.\HKEY_CLASSES_ROOT\Directory\Background\shell:
新增项:vscode, 双击右侧默认,输入open vscode (whatever)
新增可扩充字符串icon :双击输入值:"path/code.exe"
在vscode下新增项:command,双击值输入:"path/code.exe""%V"
完成设置