카테고리 없음

Visual Studio Code 사용 정리

ryubato 2021. 1. 14. 11:20

Visual Studio Code

Extension

유용한 Extension

  • Auto Comment Bloacks: 블락 주석 처리의 줄바꿈 시 자동으로 * 생성
  • Bookmarks
  • Bracket Pair Colorizer 2
  • change-case
  • Code Runner
    • Integrated Terminal 에서 실행하기 위해 "code-runner.runInTerminal": true 를 추가
  • Comment Anchors: 주석 관리 (TODO Highlight, Todo Tree, Better Comments 중 사용 패턴에 맞음)
  • GitLens
  • Groovy Lint, Format and Fix
  • Jenkins Jack
  • Jenkins Linter
  • Markdown All in One
  • Prettier
  • Remote Development
  • vscode-icons
  • XML Tools

Extension 오프라인 설치 방법

  1. 오프라인 설치 파일 다운로드
  2. 오프라인 설치
    • VS Code Extentions 메뉴 > ... > Install from VSIX

Visual Studio Code 사용팁

Format Document

단축키 : alt + shift + k

기본 Formatter 설정 : 문서 우클릭 > Format Document with ...

Git Bash Integrated Terminal

// settings.json
"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
"terminal.integrated.shellArgs.windows": ["--login", "-i"]

WSL2 with zsh Integrated Terminal

//settgins.json
"terminal.integrated.automationShell.windows": "C:\\Program Files\\Git\\git-bash.exe",
"terminal.integrated.shell.windows": "C:\\Windows\\System32\\wsl.exe",
"terminal.integrated.fontFamily": "'Fira Code', 'D2Coding Ligature'",

Workspace 사용

  • workspace save file 초기 저장 위치에서 변경 후에 열게 되면 workspace 내 폴더 연결 안됨
    • workspace save file 편집하면 되는지 확인 필요
  • Multi workspace 기능 및 지원하는 Extension 은 없음