tip , 오류해결

VScode : 마우스 오른쪽 비주얼 코드 실행

흰색기린 2021. 8. 10. 11:39

 

마우스 오른쪽 버튼 클릭 -> 빠르게 들어갈 수 있는 Open Folder as VS Code Project

 

이 부분이 없었다..

 

그래서 검색한 결과, 재설치 혹은 레지스트리 파일로 등록을 하는 방법인데

 

더보기

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

 

이 부분을 txt로 저장한 후에.. 경로를 편집해준다

 

※ 빨간색 line의 @= 부분을 편집하면 제목 변경 가능

경로를 비주얼 스튜디오 코드 오른쪽 -> 속성 을 눌러서 확인이 가능하다.

 

이 경로를 복사하고 지금 복사한 경로는 \이 하나밖에 들어가있지 않은데 경로를 설정할 때, \\를 넣어줘야 한다.

 

txt -> reg로 변경해주고 

 

실행시키면 주의 안내문이 나온다. 그냥 실행시켜주면 등록된 것을 확인할 수 있다 !