Skip to content

Instantly share code, notes, and snippets.

@scarf005
Created September 30, 2022 10:25
Show Gist options
  • Select an option

  • Save scarf005/e9d9a5f9c34a145becb8dff3f19718a8 to your computer and use it in GitHub Desktop.

Select an option

Save scarf005/e9d9a5f9c34a145becb8dff3f19718a8 to your computer and use it in GitHub Desktop.
42와 vscode

42와 vscode

vscode 경로를 PATH에 추가하기

커맨드라인에서 실행 가능하므로 사용/오류 해결에 편리

  1. 초기 설정으로 사용할 경우 /Applications/Visual\ Studio\ Code\ 2.app/Contents/Resources/app/bin
  2. export PATH=$PATH:"/Applications/Visual\ Studio\ Code\ 2.app/Contents/Resources/app/bin" 를 ~/.zshrc`에 추가

vscode 버튼을 실행해도 아무것도 뜨지 않을 때

vscode 캐시와 로컬 파일을 goinfre/에 심볼릭 연결했을 가능성이 높음

  1. code --status를 터미널에 입력하여 ENOENT에러가 나는지 확인
  2. goinfre/로 향하는 심볼릭 링크는 있으나 가리키는 디렉터리가 존재하지 않아 문제 발생 (goinfre는 자리마다 초기화됨)
  3. ls -al (존재하지 않는다고 오류가 뜨는 디렉터리)를 입력하여 심볼릭 링크가 가리키는 디렉터리 확인
  4. mkdir -p (가리키는 디렉터리)goinfre/에 해당 디렉터리 생성
  5. 4에서 사용한 명령어를 골라 쉘 스크립트로 만들거나 ~/.zshrc에 추가해 자리를 바꾸더라도 자동으로 폴더가 생성되게 변경
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment