This script automatically parse your project directory and install recommended extensions online from marketplace or offline form previously downloaded .vsix files
- Table of contents
- Contacts and support
- Software requirements
- Usage
- Recommendations searching
- Online installation from VSCode Marketplace
- Offline installation
- VSCode CLI interface
- Silent mode
- Verbose mode
- Contribution
If you have any questions or suggestions, contact the developers:
- Eugene Azimut e-mail: y.azimut@mail.ru
- Eugene Azimut on VK: vk.ru/yazimut
- 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
- pip 24.0
- python3.12-venv
- Modules from requirements.txt:
- colorama 0.4.6
Script searching recommended extensions in your project directory (current working directory) in following order:
- First
*.code-workspacefile
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) .vscode/extensions.json
Important
These files must be a valid VSCode JSON files without comments!
By default script will try to install extensions from VSCode Marketplace
cd MyAwesomeProject
python3 vscode_extensions.pyYou can install recommended extensions from previously downloaded .vsix files
cd MyAwesomeProject
python3 vscode_extensions.py --offline=/path/to/vsix/dirNote
Extensions for which no corresponding .vsix files are found will be skipped
You can specify path to VSCode executable, if you need
cd MyAwesomeProject
python3 vscode_extensions.py --vscode-path=/path/to/vscodeIt 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.
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 --silentCan be useful for debugging script
cd MyAwesomeProject
python3 vscode_extensions.py --verboseImportant
Silent mode takes precedence over verbose mode, but their combination will lead to output only the one warning about this combination
- Any supported OS from previous section
- Git 2.43.0
- VSCode 1.107.1 (optional)