Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

binding vscode profiles to a workspace

The new version of VSCode 1.75 contains the new feature Profiles, which can be accessed via [Settings-Wheel]-[profiles].

One can now create profiles with different extensions and switch between them. It would be great if a workspace would automatically use a specific profile. Is there any way to bind the profiles to a workspace/working directory so that I can set up a workspace to automatically select a specific profile when I open that workspace? So far I have not found a way to do this.

like image 883
maddes8cht Avatar asked Feb 27 '26 00:02

maddes8cht


2 Answers

As it turns out, VSCode does this already. You just have to follow the correct order:

You select a specific workspace / folder and set your profile there the way you want it to be for that workspace - I take a workspace for C++ and uninstall everything I don't need for C++ development.

Now you can choose another workspace - for example one for Python. I create a new profile (I like to use one based on my base profile where I had everything installed so far) and remove everything from it that I don't need for Python development - for example the C/C++ development tools.

If I now switch back to my C++ workspace, I find all the settings there again as I left them.

The nice thing is that I don't just deactivate extensions as before - I actually uninstall them from the profile. It makes the Extensions area much cleaner.

like image 65
maddes8cht Avatar answered Mar 05 '26 14:03

maddes8cht


here is how we can done, mentioned on official vscode docs

Click on profile Icon in bottom left --> Profiles > Select Your Profile and there is Folder and Workspaces section

add your folder location in this and you are done.

like image 25
diEcho Avatar answered Mar 05 '26 15:03

diEcho