6

While working with multiple Vue JS projects (Vue 2 & Vue 3), it is recommended to use a different extensions based on the version your using.
Vue 2 = Vetur
Vue 3 = Volar

Is there a way to auto-enable/disable these extensions from either settings.json or vscode itself?

maybe something like:

// settings.json
{
  "extensions": {
    "Vetur": false,
    "Volar": true,
  }
}
  • 1
    See https://stackoverflow.com/a/72875272/836330 for "settings profiles" which allow you to have different sets of extensions for different projects. Also https://github.com/microsoft/vscode-docs/blob/vnext/release-notes/v1_69.md#settings-profiles – Mark Jul 05 '22 at 20:42
  • 1
    Does this answer your question? [can I manage plugins by projects?](https://stackoverflow.com/questions/54210912/can-i-manage-plugins-by-projects) – starball Aug 25 '23 at 08:33

2 Answers2

11

You can actually - if you go into the extension settings, you have an option to enable/disable just for the current workspace:

enter image description here

Thomas Kuhlmann
  • 943
  • 7
  • 18
0

Say I'm working with some Vendor extension and they update that. I've got multiple projects going and some of them can use the updates and some of them can't (at present) so I have to keep all this stuff around basically forever.

I have to have different workspaces per project anyway (these settings would need to be transmitted into the repo along with the code itself) so this isn't too bad other than attempting to figure out which extensions are from Vendor A and which ones are from Vendor B (ner the two mix -- they will have different compiler chains for instance)

Randy Lee
  • 1
  • 4
  • As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Shawn Aug 14 '23 at 05:47
  • This does not really answer the question. If you have a different question, you can ask it by clicking [Ask Question](https://stackoverflow.com/questions/ask). To get notified when this question gets new answers, you can [follow this question](https://meta.stackexchange.com/q/345661). Once you have enough [reputation](https://stackoverflow.com/help/whats-reputation), you can also [add a bounty](https://stackoverflow.com/help/privileges/set-bounties) to draw more attention to this question. - [From Review](/review/late-answers/34824723) – A-Tech Aug 17 '23 at 12:15