매번 마우스로 파일 생성하기 귀찮아서 단축키로 파일생성 하는 방법을 소개하고자 합니다.
- ctrl+shift+p를 누른 후 Keyboard Shortcuts에 들어갑니다.
- 오른쪽 상단에 Open Keyboard Shortcuts (JSON)에 들어갑니다.
- json 파일에 다음과 같이 입력합니다.
[ // 파일 탐색기(Files Explorer)에서 활성화되는 경우 { "key": "ctrl+shift+a", "command": "workbench.files.action.newFile", "when": "filesExplorerFocus && !inputFocus && !explorerResourceIsRoot && explorerViewletVisible" }, // 에디터(Editor)에 초점이 없는 경우 { "key": "ctrl+shift+a", "command": "explorer.newFile", "when": "!editorFocus" }, // 파일 탐색기(Files Explorer)에서 루트 디렉토리의 경우 { "key": "ctrl+shift+a", "command": "explorer.newFile", "when": "explorerResourceIsRoot && explorerViewletVisible && !inputFocus" }, // 에디터(Editor)에 초점이 있는 경우 { "key": "ctrl+shift+a", "command": "explorer.newFile", "when": "editorFocus" }, ]
key에 원하는 단축키를 입력합니다.
'환경설정 > 기타' 카테고리의 다른 글
[Windows] Windows에서 Ctrl + Space로 한영키 변경 (0) | 2024.07.29 |
---|---|
[Tensorflow] Tensorflow_io 오류 해결 (0) | 2024.07.22 |
캡처한 이미지가 어둡게 나오는 경우 (0) | 2024.04.02 |