Skip to content

Instantly share code, notes, and snippets.

@eagleon
Created March 23, 2018 07:28
Show Gist options
  • Save eagleon/0c54b9e788202a5d67031529f6fcb67a to your computer and use it in GitHub Desktop.
Save eagleon/0c54b9e788202a5d67031529f6fcb67a to your computer and use it in GitHub Desktop.
vs code命令行
根据终端类型将以下代码
```
code () { VSCODE_CWD="$PWD" open -n -b "com.microsoft.VSCode" --args $* ;}
```
bash, 写入到~/.bash_porfile
zsh, 写入到~/.zshrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment