Skip to main content

A VSCode version manager.

Project description

vscvm

A VSCode version manager.

Install

Install vsc via pip:

pip install vscvm

Add the following to your .bashrc file:

export PATH=$HOME/.vscvm:$PATH
if [ ! -e "/tmp/vscvm_check_update" ]; then
  vscvm_check_update
fi

and that's it!

Update checks

If you don't want an update check to run periodically, you only need to add this one line to your .bashrc:

export PATH=$HOME/.vscvm:$PATH

Usage

$ vsc list
v1.59 - July 2021
v1.58 - June 2021
v1.57 - May 2021
v1.56 - April 2021
v1.55 - March 2021

$ vsc install latest
Downloading v1.59 - July 2021...
Successfully installed v1.59!

$ code --version
1.59.0

Commands

  • list:

    $ vsc list -n 3
    v1.59 - July 2021      [Active]
    v1.58 - June 2021      [Installed]
    v1.57 - May 2021
    
    $ vsc list --installed
    v1.59 - July 2021      [Active]
    v1.58 - June 2021      [Installed]
    
    $ vsc list --active
    v1.59 - July 2021      [Active]
    
  • install:

    $ vsc install latest
    Downloading v1.59 - July 2021...
    
    $ vsc install v1.57
    Downloading v1.57 - May 2021...
    
    $ vsc install 1.42
    Downloading v1.42 - January 2020...
    
  • uninstall:

    $ vsc list --active
    v1.59 - July 2021      [Active]
    $ vsc uninstall
    Uninstalled v1.59.
    
    $ vsc uninstall 1.56
    Uninstalled v1.56.
    
  • cleanup:

    $ vsc list -n3
    v1.59 - July 2021      [Active]
    v1.58 - June 2021      [Installed]
    v1.57 - May 2021       [Installed]
    
    $ vsc cleanup
    Uninstalled v1.58.
    Uninstalled v1.57.
    

Troubleshooting

  • vsc: command not found

    If you installed vscvm via pip, but the terminal says vsc is not a recognized command, that means that you probably don't have ~/.local/bin in your PATH.

    Add the following line into your .bashrc file:

    PATH=$PATH:$HOME/.local/bin
    

    then restart your terminal, and it should start working.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vscvm-1.4.0.post1.tar.gz (6.1 kB view hashes)

Uploaded source

Built Distribution

vscvm-1.4.0.post1-py3-none-any.whl (6.5 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page