How to install all VS Code workspace extensions programaticallyHow do you format code in Visual Studio Code (VSCode)How to use Visual Studio Code as Default Editor for GitHow do I hide certain files from the sidebar in Visual Studio Code?How to switch word wrap on and off in VSCode?Automatically install extensions in VS Code?How to install VSCode extensions offline?How do I configure Visual Studio Code to open files always in a new tab?can not install vscode extensionWhat is a 'workspace' in VS Code?VS Code extension recommendations for projects
What makes accurate emulation of old systems a difficult task?
Unknown code in script
How much cash can I safely carry into the USA and avoid civil forfeiture?
How to keep bees out of canned beverages?
How important is it that $TERM is correct?
What is the term for a person whose job is to place products on shelves in stores?
Can I criticise the more senior developers around me for not writing clean code?
Multiple options vs single option UI
Mistake in years of experience in resume?
Nails holding drywall
Drawing a german abacus as in the books of Adam Ries
A strange hotel
How to pronounce 'c++' in Spanish
Older movie/show about humans on derelict alien warship which refuels by passing through a star
Multiple fireplaces in an apartment building?
How to not starve gigantic beasts
How exactly does Hawking radiation decrease the mass of black holes?
My bank got bought out, am I now going to have to start filing tax returns in a different state?
Work requires me to come in early to start computer but wont let me clock in to get paid for it
How do I deal with a coworker that keeps asking to make small superficial changes to a report, and it is seriously triggering my anxiety?
Help with my training data
How do I reattach a shelf to the wall when it ripped out of the wall?
Where was the County of Thurn und Taxis located?
Find the identical rows in a matrix
How to install all VS Code workspace extensions programatically
How do you format code in Visual Studio Code (VSCode)How to use Visual Studio Code as Default Editor for GitHow do I hide certain files from the sidebar in Visual Studio Code?How to switch word wrap on and off in VSCode?Automatically install extensions in VS Code?How to install VSCode extensions offline?How do I configure Visual Studio Code to open files always in a new tab?can not install vscode extensionWhat is a 'workspace' in VS Code?VS Code extension recommendations for projects
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
When VS Code opens in a folder with .vscode/extensions.json present the user has the option to Install All recommended extensions.
How can the Install All function be invoked programatically (i.e. without human interaction) using the command line or VS Code API?

visual-studio-code vscode-settings vscode-extensions
add a comment |
When VS Code opens in a folder with .vscode/extensions.json present the user has the option to Install All recommended extensions.
How can the Install All function be invoked programatically (i.e. without human interaction) using the command line or VS Code API?

visual-studio-code vscode-settings vscode-extensions
add a comment |
When VS Code opens in a folder with .vscode/extensions.json present the user has the option to Install All recommended extensions.
How can the Install All function be invoked programatically (i.e. without human interaction) using the command line or VS Code API?

visual-studio-code vscode-settings vscode-extensions
When VS Code opens in a folder with .vscode/extensions.json present the user has the option to Install All recommended extensions.
How can the Install All function be invoked programatically (i.e. without human interaction) using the command line or VS Code API?

visual-studio-code vscode-settings vscode-extensions
visual-studio-code vscode-settings vscode-extensions
asked Mar 9 at 7:11
sabrehagensabrehagen
647519
647519
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
It doesn't look like the "Install All" action is associated with a command you could call via the vscode.commands API.
The easiest solution is probably to parse .vscode/extensions.json yourself. You could then simply run code --install-extension <extension-id> for each of the extension IDs you find.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55074942%2fhow-to-install-all-vs-code-workspace-extensions-programatically%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
It doesn't look like the "Install All" action is associated with a command you could call via the vscode.commands API.
The easiest solution is probably to parse .vscode/extensions.json yourself. You could then simply run code --install-extension <extension-id> for each of the extension IDs you find.
add a comment |
It doesn't look like the "Install All" action is associated with a command you could call via the vscode.commands API.
The easiest solution is probably to parse .vscode/extensions.json yourself. You could then simply run code --install-extension <extension-id> for each of the extension IDs you find.
add a comment |
It doesn't look like the "Install All" action is associated with a command you could call via the vscode.commands API.
The easiest solution is probably to parse .vscode/extensions.json yourself. You could then simply run code --install-extension <extension-id> for each of the extension IDs you find.
It doesn't look like the "Install All" action is associated with a command you could call via the vscode.commands API.
The easiest solution is probably to parse .vscode/extensions.json yourself. You could then simply run code --install-extension <extension-id> for each of the extension IDs you find.
answered Mar 9 at 9:54
Gama11Gama11
13.2k52652
13.2k52652
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55074942%2fhow-to-install-all-vs-code-workspace-extensions-programatically%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown