How to right-click to open vscode
This article is about how to right-click to open vscode. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
How to right open vscode?
Right mouse button vsCode open
Sometimes when installing vscode, there is no right mouse button opening with vscode:
Related recommendation: vscode tutorial
What it will look like in the end:
The solution is as follows:
1. Install vscode
two。 Create a new file with the suffix ".reg"
3. Copy the following to the file
Windows Registry Editor Version 5.00; Open files [HKEY_CLASSES_ROOT\ *\ shell\ Open with VS Code] @ = "Edit with VS Code"Icon" = "D:\\ Microsoft VS Code\\ Code.exe,0" [HKEY_CLASSES_ROOT\ *\ shell\ Open with VS Code\ command] @ = "\" D:\\ Microsoft VS Code\\ Code.exe\ "% 1\"; This will make it appear when you right click ON a folder The "Icon" line can be removed if you don't want the icon to appear [HKEY_CLASSES_ROOT\ Directory\ shell\ vscode] @ = "Open with VSCode"Icon" = "\" D:\\ Microsoft VSCode\\ Code.exe\ ", 0" [HKEY_CLASSES_ROOT\ Directory\ shell\ vscode\ command] @ = "\" D:\\ Microsoft VSCode\\ Code.exe\ "% 1\"; This will make it appear when you right click INSIDE a folder The "Icon" line can be removed if you don't want the icon to appear [HKEY_CLASSES_ROOT\ Directory\ Background\ shell\ vscode] @ = "Open with VSCode"Icon" = "\" D:\\ Microsoft VSCode\\ Code.exe\ ", 0" [HKEY_CLASSES_ROOT\ Directory\ Background\ shell\ vscode\ command] @ = "\" D:\\ Microsoft VSCode\\ Code.exe\ "% V\" D:\\ Microsoft VSCode\\ Code.exe 0 "[HKEY_CLASSES_ROOT\ *\ shell\ Open with VS Code\ command] @ ="\ "D:\\ Microsoft VS Code\\ Code.exe\"\ "% 1\" This will make it appear when you right click ON a folder; The "Icon" line can be removed if you don't want the icon to appear [HKEY_CLASSES_ROOT\ Directory\ shell\ vscode] @ = "Open with VSCode"Icon" = "\" D:\\ Microsoft VSCode\\ Code.exe\, 0 "[HKEY_CLASSES_ROOT\ Directory\ shell\ vscode\ command] @ ="\ "D:\\ Microsoft VSCode\\ Code.exe\"\ "% 1\" This will make it appear when you right click INSIDE a folder; The "Icon" line can be removed if you don't want the icon to appear [HKEY_CLASSES_ROOT\ Directory\ Background\ shell\ vscode] @ = "Open with VSCode"Icon" = "\" D:\\ Microsoft VSCode\\ Code.exe\, 0 "[HKEY_CLASSES_ROOT\ Directory\ Background\ shell\ vscode\ command] @ ="\ "D:\\ Microsoft VSCode\\ Code.exe\"\ "% V\"
4. Change "D:\\ Microsoft VS Code\\ Code.exe\" to the path where vscode is installed
5. Put the file with the suffix .reg in the folder where vscode is installed at the same level as vscode.exe
6. Double-click the file with the suffix .reg, pop up and ask if you want to register, and click OK.
7. Go back to the desktop and check with the right mouse button to see if the picture above looks like
Thank you for reading! This is the end of the article on "how to right open vscode". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!