If installed vsvode I have no choice when I am young open with code If this function , Then there are only two methods to add the right mouse button function .
Method 1 : Reinstall , I won't elaborate on this , Self understanding , This paper mainly talks about the second method
Method 2 : Modify registry
* Create a new text document on the desktop
* Enter the following code in the text document to modify the registry .
be careful : The path should be changed to your own computer vscode Absolute path of , And pay attention to the in the path \ Escape of , Because it's in a string , So escape .
code :
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\*\shell\VSCode] @=
"Open with Code" "Icon"="C:\\Users\\Yang\\AppData\\Local\\Programs\\Microsoft
VS Code\\Code.exe" [HKEY_CLASSES_ROOT\*\shell\VSCode\command] @=
"\"C:\\Users\\Yang\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe\"
\"%1\"" Windows Registry Editor Version 5.00 [
HKEY_CLASSES_ROOT\Directory\shell\VSCode] @="Open with Code" "Icon"=
"C:\\Users\\Yang\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe" [
HKEY_CLASSES_ROOT\Directory\shell\VSCode\command] @=
"\"C:\\Users\\Yang\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe\"
\"%V\"" Windows Registry Editor Version 5.00 [
HKEY_CLASSES_ROOT\Directory\Background\shell\VSCode] @="Open with Code" "Icon"=
"C:\\Users\\Yang\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe" [
HKEY_CLASSES_ROOT\Directory\Background\shell\VSCode\command] @=
"\"C:\\Users\\Yang\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe\"
\"%V\""
* After saving the file , Rename to test.reg, The name doesn't matter , The main suffix is .reg, Then a pop-up box will pop up , Choice is
* double-click test.reg, Then a dialog box pops up , Choice is , The dialog box pops up again , Then select OK . It's done
remarks : If it is not added successfully , You can re run step 4 with administrator privileges .
Technology
Daily Recommendation