1. 程式人生 > >在MAC終端中用sublime、VSCode開啟目錄

在MAC終端中用sublime、VSCode開啟目錄

1.進入.zshrc

cd ~
vi .zshrc

2.加入sublime、VSCode的別名和目錄

執行的目錄:Finder–>應用程式–>指定編輯器右鍵顯式包內容–>找到執行檔案
在.zshrc檔案的末尾加上一下內容

alias subl='/Applications/SublimeText.app/Contents/SharedSupport/bin/subl'
alias code='/Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin/code'

\ 為空格轉義

3.使用軟體別名開啟目錄

code .