使用 command line 產生 .bash_profile 之後進入編輯
cd
touch .bash_profile
vim .bash_profile
之後填入
#Tip: If you want to run VS Code from the terminal,
# append the following to your ~/.bash_profile file (~/.zshrc in case you use zsh).
code () { VSCODE_CWD="$PWD" open -n -b "com.microsoft.VSCode" --args $* ;}
#Tip: Add the following to your .bash_profile and restart the Terminal.
# 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.
source dnvm.sh
export MONO_MANAGED_WATCHER=disabled
接著 wq 離開, 重啟 term 之後就可以直接使用 dnu ,也可以把 code 踢起來了
沒有留言:
張貼留言