本文主要針對 Mac 使用者,身為一個開發者總是會使用過 Mac (這不一定正確就是了),總之本文就是基礎於開發者需求,讓大家可以帥氣的開發。 針對自己有在使用的編輯器進行介紹, Atom Atom 安裝後就可以直接再 iterm ,切換到希望使用的專案資料夾, cd $PATH atom ./ Sublime Text 2 / 3 Sublime Text 到 iterm 之後,輸入以下指令, ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/subl 如果是 sublime text 3 ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" ~/bin/subl 接下來就可以直接使用 cd $PATH subl ./ Visual Studio Code Visual Studio Code 設定方式,編輯 .bashrc (取決於自己用什麼樣的 shell) code () { if [[ $# = 0 ]] then open -a "Visual Studio Code" else [[ $1 = /* ]] && F="$1" || F="$PWD/${1#./}" open -a "Visual Studio Code" --args "$F" fi } 接下來就可以直接使用 cd $PATH code ./ 是不是很方便愉快了,直接切到資料夾中,就可以開始進入編輯模式,透過指令可以做快速切換,真正人生一大樂事,這也是我們為什麼喜歡使用 Mac 的原因了。 Ref OS X Command Line Setting up Visual Studio Code
熱血,是一輩子的事! Answer is there, dig it.