VSCode 관련 팁 정리 모음

Genie·2021년 11월 14일
1

https://hianna.tistory.com/585

https://blog.naver.com/PostView.nhn?blogId=jjjhygo91&logNo=221494454529&categoryNo=6&parentCategoryNo=0

https://velog.io/@cse_pebb/Visual-Studio-%EA%B8%B0%EB%B3%B8-%EA%BF%80%ED%8C%81

https://velog.io/@briskly0415/Visual-Studio-Code-Indentation

코드 정렬 방법

마우스로 드래그 하거나 Ctrl + A 키를 눌러 코드 전체를 모두 선택합니다.
다음은 Ctrl 키를 누른 상태에서 K 와 F 를 차례대로 클릭합니다


코드 확장

Shrink/expand selection
Quickly shrink or expand the current selection. Trigger it with Shift+Alt+Left and Shift+Alt+Right.


프로젝트 현재 폴더 내 파일 생성 단축키

EXPLORER 창에서 아이콘을 클릭하여 새 파일이나 새 폴더를 만들면 선택된 폴더 하위로 생성해주는데 이 것과 동일한 기능을 하는 단축키를 아래와 같이 만들 수 있다.
cmd+shift+p 로 Preferences: Open Keyboard Shortcuts (JSON) 를 열어서 아래와 같이 작성.

[
  {
    "key": "cmd+n",
    "command": "explorer.newFile",
    "when": "explorerViewletFocus"
  },
  {
    "key": "cmd+shift+n",
    "command": "explorer.newFolder",
    "when": "explorerViewletFocus"
  }
]

profile
차근차근

0개의 댓글