Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to enable and disable extensions for certain workspace with .vscode/?

I added some extensions to VS Code, including python, c++, flutter, etc. I'm trying to disable some extensions in a specific repo, such as the flutter extension in my frontend repo. I want to save this setting in .vscode/ so that when I move the repo, VS Code will remember the setting.

like image 823
chenfwww Avatar asked Sep 07 '25 07:09

chenfwww


1 Answers

As far as I know, no. The information about which extensions you have enabled or disabled for a workspace is not saved in the workspace's .vscode/ folder. The best you can is recommend / recommend-against extensions to enable for the workspace using extensions.json (using the recommendations and unwantedRecommendations properties).

I'm not sure exactly where that information is stored, but I reckon somewhere in the place where VS Code stores the rest of your user data. On Linux machines, that's in ~/.config/Code. On Windows, it's in %APPDATA%\Code. On macOS, it's in ~/Library/Application Support/Code. It might be stored in the workspace database (./User/workspaceStorage/<workspace folder hash>/...)

like image 154
starball Avatar answered Sep 10 '25 07:09

starball