Skip to content

yazimut/vsce_installer

Repository files navigation

VSCode extensions automatic installer

This script automatically parse your project directory and install recommended extensions online from marketplace or offline form previously downloaded .vsix files

Table of contents

  1. Table of contents
  2. Contacts and support
  3. Software requirements
  4. Usage
    1. Recommendations searching
    2. Online installation from VSCode Marketplace
    3. Offline installation
    4. VSCode CLI interface
    5. Silent mode
    6. Verbose mode
  5. Contribution
    1. Software for development

Contacts and support

If you have any questions or suggestions, contact the developers:

Software requirements

  • OS:
    • or Ubuntu 24.04 amd64 (x64) (tested)
    • or Any Debian-like (possibly, not tested)
    • or Mirosoft Windows 10 amd64 (x64) (possibly, not tested)
    • or Mirosoft Windows 11 amd64 (x64) (possibly, not tested)
  • Python 3.12.3

Usage

Recommendations searching

Script searching recommended extensions in your project directory (current working directory) in following order:

  1. First *.code-workspace file
    Often here it is only one such file, but in other case first found will be used. Note that these files is NOT always sorted in alphabetical order (depends on your system)
  2. .vscode/extensions.json

Important

These files must be a valid VSCode JSON files without comments!

Online installation from VSCode Marketplace

By default script will try to install extensions from VSCode Marketplace

    cd MyAwesomeProject
    python3 vscode_extensions.py

Offline installation

You can install recommended extensions from previously downloaded .vsix files

    cd MyAwesomeProject
    python3 vscode_extensions.py --offline=/path/to/vsix/dir

Note

Extensions for which no corresponding .vsix files are found will be skipped

VSCode CLI interface

You can specify path to VSCode executable, if you need

    cd MyAwesomeProject
    python3 vscode_extensions.py --vscode-path=/path/to/vscode

It can be useful, if you want to install extensions on remote VSCode server from remote host terminal.
Typically integrated VSCode terminal adding VSCode to the beginning of the environment PATH.

Silent mode

In silent mode any script and VSCode output will be redirected to the NULL-device (e.g. /dev/null in Linux or NUL in Windows)

    cd MyAwesomeProject
    python3 vscode_extensions.py --silent

Verbose mode

Can be useful for debugging script

    cd MyAwesomeProject
    python3 vscode_extensions.py --verbose

Important

Silent mode takes precedence over verbose mode, but their combination will lead to output only the one warning about this combination

Contribution

Software for development

  • Any supported OS from previous section
  • Git 2.43.0
  • VSCode 1.107.1 (optional)

About

VSCode extensions automatic installer

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages