os/MAC
CLI run Visual Studio Code
C/H
2021. 2. 25. 10:41
Add to Command
.zshrc
.bashrc
code () { if [[ $# = 0 ]] then open -a "Visual Studio Code" else [[ $1 = /* ]] && F="$1" || F="$PWD/${1#./}" open -a "Visual Studio Code" --args "$F" fi }
code
명령어가 실행 할 수 있도록 path를 추가해준다.Ctrl+Shift+P
,Cmd+Shift+P
,Menu > View > Command Palette...
에서shell Command
로 검색 후 실행한다.
반응형