Created
March 23, 2018 07:28
-
-
Save eagleon/0c54b9e788202a5d67031529f6fcb67a to your computer and use it in GitHub Desktop.
vs code命令行
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
根据终端类型将以下代码 | |
``` | |
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