본문 바로가기
IDE

[Vscode] 우클릭시 Open with code가 보이지 않을 때

by 흐암졸령 2021. 7. 20.
반응형

[문제점]

 Vscode를 설치할 때 "Code(으)로 열기"작업을 Windows 탐색기 파일의 상황에 맞는 메뉴 추가 와 같은 체크박스를 설치하지 않으면 우클릭을 하여도 Open with code가 보이지 않는다. 또한 나의 경우는 윈도우 계정의 이름과 Users아래의 폴더 이름을 바꾸면서 경로에 문제가 생겼는지 우클릭을 해서 Open with code를 눌러도 제대로 되지 않았다. 

 

[해결방법]

 Visual Studio Code를 지우고 설정을 하면서 설치를 하면 해결이 되지만 설치했던 익스텐션이나 설정을 다시 해야한다. 굳이 재설치를 하지 않아도 레시스트리 설정을 하면 된다. 아래 파일을 다운받고 우클릭-편집을 눌러서 파일을 연다.

visualStudioCode.reg
0.00MB

레지스트리 파일에서 ...경로 부분을 자신의 컴퓨터에 맞게 모두 고쳐준 뒤에 실행을 시키면된다. 그러면 우클릭시 정상적으로 Open with code 메뉴가 나타납니다. 파일을 다운받기에 좀 그러신 분들은 레지스트리 파일을 만들고 아래의 텍스트를 붙이면 됩니다.

* 경로를 넣을 때 역슬래쉬(\)를 두번씩 해주어야 합니다!

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\""

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

반응형

댓글