본문 바로가기

Error

VS Code 우클릭시 Open with code 가 보이지 않을 때

VS Code를 설치할 때 아래와 같은 옵션을 선택하면, 파일 및 폴더 우클릭 시 Open with code 라는 바로가기가 생성되게 됩니다.




그러나 깜빡하고 체크를 하지 않았거나, 레지스트리를 잘못 건드린 경우 우클릭해도 해당 메뉴가 뜨지 않습니다.

물론 삭제했다 재설치하면 해결되지만 설치했던 익스텐션이나 설정을 다시 건드리기는 엄두가 나지 않습니다.


아래 레지스트리를 다운받으시고, 우클릭-편집을 통해 파일을 오픈하세요. 

VS Code 가 설치된 경로를 자신의 컴퓨터에 맞게 모두 고쳐준 뒤 레지스트리를 등록하면,

정상적으로 우클릭 시 Open with code 메뉴가 나타나게 됩니다. (편집없이 실행하시면 적용되지 않습니다)


vsCodeOpenFolder.reg



@= 뒤의 텍스트들을 고치시면 우클릭시 나오는 메시지를 바꿀 수도 있습니다. 

다운받으시기 꺼림칙하신 분들은 아래 텍스트 복사하셔서 직접 레지스트리 만드시면 됩니다. 

Windows Registry Editor Version 5.00
; Open files
[HKEY_CLASSES_ROOT\*\shell\Open with VS Code]
@="Edit with VS Code"
"Icon"="C:\\...경로\\Microsoft VS Code\\Code.exe,0"
[HKEY_CLASSES_ROOT\*\shell\Open with VS Code\command]
@="\"C:\\...경로\\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 Folder as VS Code Project"
"Icon"="\"C:\\...경로\\Microsoft VS Code\\Code.exe,0"
[HKEY_CLASSES_ROOT\Directory\shell\vscode\command]
@="\"C:\\...경로\\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_ROOT\Directory\Background\shell\vscode]
@="Open Folder as VS Code Project"
"Icon"="C:\\...경로\\Microsoft VS Code\\Code.exe,0"
[HKEY_CLASSES_ROOT\Directory\Background\shell\vscode\command]
@="\"C:\\...경로\\Microsoft VS Code\\Code.exe\" \"%V\""
cs