Skip to content

Instantly share code, notes, and snippets.

@Ishidres Ishidres/

Last active Mar 23, 2019
What would you like to do?
Automatically updates Visual Studio Code by downloading the latest version and replacing the currently installed version with it.
notify-send "Updating Visual Studio Code..."
# killing VS Code will give you a crash message and will reopen it
# it's also unsafe because you might lose unsaved data
# pkill code
# automatically gets the latest version of VS Code
wget ""
# remove currently installed version of VS Code and replace it with the new downloaded one
rm -r VSCode-linux-x64
tar -xf "stable"
rm "stable"
notify-send "Updating Visual Studio Code to latest version has finished."
cd ./VSCode-linux-x64
./code &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.