Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Oh My Zsh
Commits
7b751635
Commit
7b751635
authored
May 08, 2019
by
George Cheng
Committed by
Marc Cornellà
May 08, 2019
Browse files
vscode: add code-insiders support (#7836)
parent
b054e25d
Changes
2
Hide whitespace changes
Inline
Side-by-side
plugins/vscode/README.md
View file @
7b751635
...
@@ -8,6 +8,21 @@ To start using it, add the `vscode` plugin to your `plugins` array in `~/.zshrc`
...
@@ -8,6 +8,21 @@ To start using it, add the `vscode` plugin to your `plugins` array in `~/.zshrc`
plugins
=(
... vscode
)
plugins
=(
... vscode
)
```
```
If you are using
[
Visual Studio Code Insiders
](
https://code.visualstudio.com/insiders/
)
,
add the following line in the oh-my-zsh settings section (between the
`ZSH_THEME`
and
the
`plugins=()`
line). This will make the plugin use the Insiders version instead.
```
zsh
ZSH_THEME
=
...
# Add this line to use code-insiders instead of code
VSCODE
=
code-insiders
plugins
=(
... vscode
)
source
$ZSH
/oh-my-zsh.sh
```
## Common aliases
## Common aliases
| Alias | Command | Description |
| Alias | Command | Description |
...
...
plugins/vscode/vscode.plugin.zsh
View file @
7b751635
# VScode zsh plugin
# VScode zsh plugin
# author: https://github.com/MarsiBarsi
# author: https://github.com/MarsiBarsi
alias
vsc
=
'code .'
# Use main Visual Studio Code version by default
alias
vsca
=
'code --add'
:
${
VSCODE
:
=code
}
alias
vscd
=
'code --diff'
alias
vscg
=
'code --goto'
alias
vscn
=
'code --new-window'
alias
vscr
=
'code --reuse-window'
alias
vscw
=
'code --wait'
alias
vscu
=
'code --user-data-dir'
alias
vsced
=
'code --extensions-dir'
alias
vsc
=
"
$VSCODE
."
alias
vscie
=
'code --install-extension'
alias
vsca
=
"
$VSCODE
--add"
alias
vscue
=
'code --uninstall-extension'
alias
vscd
=
"
$VSCODE
--diff"
alias
vscg
=
"
$VSCODE
--goto"
alias
vscn
=
"
$VSCODE
--new-window"
alias
vscr
=
"
$VSCODE
--reuse-window"
alias
vscw
=
"
$VSCODE
--wait"
alias
vscu
=
"
$VSCODE
--user-data-dir"
alias
vscv
=
'code --verbose'
alias
vsced
=
"
$VSCODE
--extensions-dir"
alias
vscl
=
'code --log'
alias
vscie
=
"
$VSCODE
--install-extension"
alias
vscde
=
'code --disable-extensions'
alias
vscue
=
"
$VSCODE
--uninstall-extension"
alias
vscv
=
"
$VSCODE
--verbose"
alias
vscl
=
"
$VSCODE
--log"
alias
vscde
=
"
$VSCODE
--disable-extensions"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment