vsocde에서도 path 경로를 설정 했는데도 매번 code. 안 될 때가 많다
오늘은 shell에 접근해서 해보려고 한다.
오류
zsh: command not found: code
해결 방법
1. 터미널에서 아래 글 입력
vim ~/.zshrc
2. i 누른 후 맨 밑으로 가서 밑에 code () {~~ 복사, (명령어 삽입키 i )
code () { VSCODE_CWD="$PWD" open -n -b "com.microsoft.VSCode" --args $* ;}
3. 저장
- esc 누르고 :wq 입력
4. 터미널에서 입력
source ~/.zshrc
5. 실행
code .
참고블로그
https://digitalogia.tistory.com/207#google_vignette
https://taenami.tistory.com/142
https://stricky.tistory.com/135
'내맘대로 > 오류모음' 카테고리의 다른 글
Access denied for user 'root'@'localhost' mysql root 접속 안될 때 (0) | 2019.12.10 |
---|---|
[aws ubuntu18.04LTS] mysql 재실행 문제 (0) | 2019.11.29 |
[aws ubuntu18.04LTS] html 파일의 php코드 인식하기 (0) | 2019.11.29 |
aws mysql Can't start MySQL server (database corruption) (0) | 2019.11.28 |
failed to connect to mysql: php_network_getaddresses: getaddrinfo failed: Name or service not known (0) | 2019.11.27 |