Just installed Visual Studio Code 1.1.1 on a Windows 7 machine. When I right-click on a folder, "Open With Code" does not appear.
Copied from http://thisdavej.com/right-click-on-windows-folder-and-open-with-visual-studio-code/
Create file vsCodeOpenFolder.reg with this content (If you didn't chose the default installation path then you need to adjust the paths in this file):
Windows Registry Editor Version 5.00 ; Open files [HKEY_CLASSES_ROOT*shellOpen with VS Code] @="Edit with VS Code" "Icon"="C:\Program Files (x86)\Microsoft VS Code\Code.exe,0" [HKEY_CLASSES_ROOT*shellOpen with VS Codecommand] @=""C:\Program Files (x86)\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_ROOTDirectoryshellvscode] @="Open Folder as VS Code Project" "Icon"=""C:\Program Files (x86)\Microsoft VS Code\Code.exe",0" [HKEY_CLASSES_ROOTDirectoryshellvscodecommand] @=""C:\Program Files (x86)\Microsoft VS Code\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_ROOTDirectoryBackgroundshellvscode] @="Open Folder as VS Code Project" "Icon"=""C:\Program Files (x86)\Microsoft VS Code\Code.exe",0" [HKEY_CLASSES_ROOTDirectoryBackgroundshellvscodecommand] @=""C:\Program Files (x86)\Microsoft VS Code\Code.exe" "%V""
Double click it to create the registry entries
2.1m questions
2.1m answers
60 comments
57.0k users