공부/TIL

[TIL] Visual Code Studio 우클릭 바로가기 추가

Ail_ 2022. 6. 23. 14:42

VSC 설치 시 옵션*을 빼먹어서 우클릭 시 바로가기가 없을 때 추가하는 법

 

TXT 파일 생성

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

!중요! 이때 경로는 \\ 두개씩

예시
"Icon"="C:\\Users\\userName\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe,0"

 

* 옵션 : Code로 열기 작업을 Windows 탐색기 파일의 상황에 맞는 메뉴에 추가

 

출처

https://pineenergy.tistory.com/37