Answers for "visual studio code open with code does not appear after right-clicking a folder"

1

Visual Studio Code “Open With Code” does not appear after right-clicking a folder

my vscode installed here:

C:UserssaberAppDataLocalProgramsMicrosoft VS Codecode.exe
should replace SABER with your pc username

enter image description here

so the script is s.th like this:

save this content as .reg script file with first line with : Windows Registry Editor Version 5.00

then run it :

Windows Registry Editor Version 5.00


; Open files
[HKEY_CLASSES_ROOT*shellOpen with VS Code]
@="Edit with VS Code"
"Icon"="C:\Users\saber\AppData\Local\Programs\Microsoft VS Code\Code.exe,0"
[HKEY_CLASSES_ROOT*shellOpen with VS Codecommand]
@=""C:\Users\saber\AppData\Local\Programs\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:\Users\saber\AppData\Local\Programs\Microsoft VS Code\Code.exe",0"
[HKEY_CLASSES_ROOTDirectoryshellvscodecommand]
@=""C:\Users\saber\AppData\Local\Programs\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:\Users\saber\AppData\Local\Programs\Microsoft VS Code\Code.exe",0"
[HKEY_CLASSES_ROOTDirectoryBackgroundshellvscodecommand]
@=""C:\Users\saber\AppData\Local\Programs\Microsoft VS Code\Code.exe" "%V""
Posted by: Guest on June-17-2021

Code answers related to "visual studio code open with code does not appear after right-clicking a folder"

Browse Popular Code Answers by Language