If you don't want do re-install VSCode, you can simply ...
- Create a new registry-file, e.g.
AddVSCodeToContextMenu.reg.2. Paste the following:
Windows Registry Editor Version 5.00; Open files[HKEY_CLASSES_ROOT\*\shell\Open with VS Code]@="Edit with VS Code""Icon"="C:\\Users\\<YOUR_USER>\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe,0"[HKEY_CLASSES_ROOT\*\shell\Open with VS Code\command]@="\"C:\\Users\\<YOUR_USER>\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe\" \"%1\""; Adds context menu entry when you right click ONTO a folder:[HKEY_CLASSES_ROOT\Directory\shell\vscode]@="Open Folder as VS Code Project""Icon"="\"C:\\Users\\<YOUR_USER>\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe\",0"[HKEY_CLASSES_ROOT\Directory\shell\vscode\command]@="\"C:\\Users\\<YOUR_USER>\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe\" \"%1\""; Adds context menu entry when you right click INSIDE a folder:[HKEY_CLASSES_ROOT\Directory\Background\shell\vscode]@="Open Folder as VS Code Project""Icon"="\"C:\\Users\\<YOUR_USER>\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe\",0"[HKEY_CLASSES_ROOT\Directory\Background\shell\vscode\command]@="\"C:\\Users\\<YOUR_USER>\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe\" \"%V\""
- Make sure that the installation path to
...\\Code.exe is correct. I.e., replace <YOUR_USER> with your actual user.4. Double click onto the registry file to run it. Done!