Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/AlexCovizzi/vscodenv
Project-level extensions for Visual Studio Code.
https://github.com/AlexCovizzi/vscodenv
python vscode
Last synced: 12 days ago
JSON representation
Project-level extensions for Visual Studio Code.
- Host: GitHub
- URL: https://github.com/AlexCovizzi/vscodenv
- Owner: AlexCovizzi
- License: apache-2.0
- Created: 2018-04-25T09:57:35.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-04-29T16:46:33.000Z (over 6 years ago)
- Last Synced: 2024-08-01T22:55:39.242Z (3 months ago)
- Topics: python, vscode
- Language: Python
- Homepage:
- Size: 47.9 KB
- Stars: 18
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vscodenv
Project-level extensions for Visual Studio Code.
## How it works
This command line tool leverages the VSCode CLI to manage your extensions on a project level.
Projects' extensions are stored in the `.vscode/extensions` directory.
You can launch Visual Studio Code from the console using the command `vscode`, the workspace is then opened loading only the extensions found in that workspace's `.vscode/extensions`.
When you open a workspace this way every required extension in `.vscode/extensions.json` is installed for that workspace.
To install an extension in your workspace you can run the command `vscode -i ` or, after launching Visual Studio Code with the command `vscode`, you can install an extension from the marketplace like you normally do.
**Note**: using the command `vscode -i `, if the extension is found in `~/.vscode/extensions`, the extension will not be downloaded but symlinked.Finally you can set all the extensions installed in your workspace as required (in `.vscode/extensions.json`) using the command `vscode --generate-required`.
## Installation
1. Clone vscodenv into `~/.vscodenv`.
~~~ sh
$ git clone https://github.com/AlexCovizzi/vscodenv.git ~/.vscodenv
~~~2. Add `~/.vscodenv` to your `$PATH` for access to the `vscode`
command-line utility.~~~ sh
$ echo 'export PATH="$HOME/.vscodenv:$PATH"' >> ~/.bash_profile
~~~**Ubuntu note**: Modify your `~/.bashrc` instead of `~/.bash_profile`.
**Zsh note**: Modify your `~/.zshrc` file instead of `~/.bash_profile`.
3. Restart your shell so that PATH changes take effect. (Opening a new
terminal tab will usually do it.)
4. Add in your user settings:
~~~ json
"files.exclude": {
"**/.vscode/extensions/*/*": true,
},
"files.watcherExclude": {
"**/.vscode/extensions/*/*": true,
},
~~~### Upgrading
You can upgrade vscodenv to the
latest version by pulling from GitHub:~~~ sh
$ cd ~/.vscodenv
$ git pull
~~~