2015/07/13

[筆記] Mac 下 VS Code 在 .bash_profile 的設定

以下環境為 max osx 10.10.4


使用 command line 產生 .bash_profile  之後進入編輯




  1. cd
  2. touch .bash_profile
  3. vim .bash_profile


之後填入
  1. #Tip: If you want to run VS Code from the terminal,
  2. # append the following to your ~/.bash_profile file (~/.zshrc in case you use zsh).
  3. code () { VSCODE_CWD="$PWD" open -n -b "com.microsoft.VSCode" --args $* ;}
  4. #Tip: Add the following to your .bash_profile and restart the Terminal.
  5. # The first line will ensure that you can always run the dnvm and dnu commands. The second line works around a known bug in Mono where you may see the IOException FileSystemWatcher has reached the maximum number of files to watch when running your application.
  6. source dnvm.sh
  7. export MONO_MANAGED_WATCHER=disabled

接著 wq 離開, 重啟 term 之後就可以直接使用 dnu ,也可以把 code 踢起來了

沒有留言:

張貼留言