Skip to content

vs code 터미널에서 실행하기

Hoyoung Jung edited this page Feb 1, 2021 · 2 revisions

간단한 방법

  1. VS CODE를 실행
  2. cmd (ctrl) + shift + p 를 눌러 커맨드 팔레트를 연다.
  3. shell command를 타이핑해서 "Install Code command in PATH" 를 찾아서 선택하면 완료.

실행

터미널의 실행을 원하는 폴더(ex: ~/hello) 에서 아래처럼 실행하면 된다.

cd ~/hello
code ./

대안

아래 방법 처럼 직접 프로파일 (bash라면 .bash_profile) 에 등록하면 된다.

cat << EOF >> ~/.zprofile
# Add Visual Studio Code (code)
export PATH="\$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
EOF

출처: https://code.visualstudio.com/docs/setup/mac