Is there some way to automatically install VS Code extensions when opening a project (like package.json but for vscode?)
If not, is there some way to install extensions at the command line?
Is there some way to automatically install VS Code extensions when opening a project (like package.json but for vscode?)
If not, is there some way to install extensions at the command line?
Thanks to Daniel's suggestion, and I find if you want to keep a list of vscode extensions and install all of them in single click, you can try this approach:
Configure Recommended Extensions command to create the extensions.json file
You will create a file like this:{
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
// List of extensions which should be recommended for users of this workspace.
"recommendations": [
"ms-vscode.cpptools",
"file-icons.file-icons",
"shd101wyy.markdown-preview-enhanced",
"sagebind.mathpad",
"johnpapa.vscode-peacock"
],
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
"unwantedRecommendations": []
}
See https://code.visualstudio.com/docs/editor/extension-gallery#_command-line-extension-management
I wrote this Makefile to automatically install extensions
freeze-extensions:
code --list-extensions > extensions.txt
install-extensions:
cat extensions.txt | xargs -L 1 code --install-extension