시작라인 click -> shift + alt + 끝라인 시작점 click |
다중 cursor |
ctrl + shift + p ctrl + ~ |
show command-line input show terminal window |
ctrl + x ctrl + shift + k
ctrl + k, ctrl + s |
1줄 혹은 선택영역 삭제 & 복사 1줄 혹은 선택영역 삭제
Keyboard Shortcuts |
ctrl + / shift + alt + a |
Toggle Line Comment (//) Toggle Block Comment (/**/) |
alt + < alt + > alt + ^ alt + V |
소스뒤로가기 소스앞으로가기 한줄 혹은 선택영역 위로 이동 한줄 혹은 선택영역 아래로 이동 |
ctrl + shift + f ctrl + k, ctrl + d ctrl + g + # |
Find in Files Move Last Selection to Next Find Match (=ctrl + k in Eclipse) #행으로 이동 |
Alt + Shift + O for Windows option+Shift+O for Mac |
remove unused imports |
ctrl + . → 방향키로 원하는 import로 이동후 Enter |
add import |
ctrl + (+) ctrl + (-) |
Zoom in 화면 확대 Zoom out 화면 축소 |
- exclude: 화면 혹은 검색결과에서 원치않는 파일 안나오도록
"files.exclude": {
"**/yarn.lock": true,
"**/package-lock.json": true,
},
"search.exclude": {
"**/node_modules": true,
"**/yarn.lock": true,
},
- Zoom in/out
- "window.zoomLevel": 0 -> 0이 기본, 늘일수록 커짐, 10이면 너무커서난리남
- "editor.mouseWeelZoom": true, mouseWeel로 조정가능한데 사이드바 메뉴 외에 딱 에디터화면만 조절됨
- Coding convention
- ctrl + shift + p > Preferences: Open Settings (JSON) 입력후 아래내용 추가하고 저장
"[java]": {
"editor.tabSize": 2,
"editor.insertSpaces": true,
"editor.formatOnSave": true
},
"java.format.settings.url": "https://raw.githubusercontent.com/google/styleguide/gh-pages/eclipse-java-google-style.xml",
"java.format.settings.profile": "GoogleStyle"
- Terminal Clear하는 방법: ctrl+shift+p > Terminal: Clear 입력
- ctrl+shift+p > Markdown: open preview
- 여러 종류의 terminal shell 이용
- 추천 Extension
- gitLens: 누가 언제 이 파일 수정했는지 알려주고 별도 사이드바 창에서 각종 상태 쉽게 알수 있음
- gitHistory: history 쉽게 보여준다는데 실행해도 반응없었음, 해결안되서 못씀
PC cleansing 후 이상현상 trouble shooting
- Cloud 환경 사용을 위해 PC cleansing 한후 vsCode를 D drive에 설치하니 lombok에러 나고 뭔가 vsCode동작이 이상했음
- ctrl + shift + p > Preferences: Open Settings (JSON) 를 했을 때 기존 setting json 내용도 없었음
- vsCode 설치파일 재실행하니 해결되었음
2019/10/07 java build가 안되며 java dependenccies도 나오지 않고 작동이 안됨, Problems에도 내용안뜸
- 껐다 키면 sorry something went wrong activating intellicode support for java 에러박스 나옴
- vs intellicode, java extension pack등 java관련 extension 다 uninstall했다 reinstall해도 해결되지 않음
- 결국 vsCode 1.38.1로 업데이트하니 해결됨
- queryDSL 관련 auto-generated source도 인식안되어 확인해보니 .classpath에 추가한 부분이 지워져있음
- .classpath에 다시 추가하여 결국 다 해결함. 힘들다;;;
2019/10/14 window login에러로 포맷후 vsCode 재설치후 lombok인식안되고 get/set 인식안됨으로 인한 대규모 에러