Adds vscode settings reset command

This commit is contained in:
Franck Nijhof 2019-05-10 19:32:51 +02:00
parent 69029577f8
commit ec97a5daea
No known key found for this signature in database
GPG key ID: D62583BA8AB11CA3
2 changed files with 13 additions and 0 deletions

View file

@ -140,6 +140,18 @@ authentication on the VSCode by setting it to `true`.
**Note**: _We STRONGLY suggest, not to use this, even if this add-on is
only exposed to your internal network. USE AT YOUR OWN RISK!_
## Resetting your VSCode settings to the add-on defaults
The add-on updates your settings to be optimized for use with Home Assistant.
As soon as you change a setting, the add-on will stop doing that since it
might be destructive. However, in case you changed some things, but want to
return to the defaults as delivered by this add-on, do the following:
1. Open the Visual Studio Code editor.
1. Click on `Terminal` in the top menu bar and clik on `New Terminal`.
1. Execute the following command in the terminal window: `reset-settings`.
1. Done!
## Known issues and limitations
- This add-on currently only supports AMD64 machines, although we hope

View file

@ -92,6 +92,7 @@ source $ZSH/oh-my-zsh.sh
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
alias reset-settings="cp /root/.code-server/settings.json /data/vscode/User/settings.json && echo 'Setting restored!'"
# Home Assistant CLI
eval "$(_HASS_CLI_COMPLETE=source_zsh hass-cli)"