티스토리 뷰

ICT/vscode

shell command : code

마더베어 2021. 1. 21. 14:30

vscode를 설치하고 tutorial (code.visualstudio.com/docs)을 따라하다보면 작동이 안될때가 있다.

다음의 경우도 그럴때.. 지금 나는 MacBook Pro Catalina가 설치된 상태이다. 

 

Create an empty folder called "hello", navigate into and open VS Code:

mkdir hello

cd hello

code

Tip: You can open files or folders directly from the command line. The period '.' refers to the current folder, therefore VS Code will start and open the Hello folder.

위의 작업은 튜토리얼에 나와있는것처럼 현재 폴더(.)에서 hello 폴더를 열고 시작한다는 의미이다. 

하지만, 

똑같이 썼는데.. " zsh: command not found: code " 라고 알려준다. 

그렇다면  show command palette 를 켜서 (cmd+shift+p ) code를 찾아서 저장하자!

shell command: install 'code' command in PATH

'ICT > vscode' 카테고리의 다른 글

MacOS 사용시 윈도우작성 파일의 한글깨짐  (0) 2021.03.12