Is it possible to use two different "projects.json" files, one for work projects and one for personal? #609
-
So this might not be a Project Manager specific question and a more general VS Code one, but since my use case is about Project Manager I'll ask here first. My objectiveTo keep all of my extensions across work and personal computers, except to have a different projects list in my Project Manager extension for work projects and for personal projects. The problem as I see itI have two personal computers (a desktop and a laptop.) I also have a work computer. I want to use settings sync to sync all settings between my personal computers and all but one setting between my personal and work computers -- the I'm not sure if there is a way to set up VS Code to use two slightly different profiles -- I have seen the idea of code profiles and I have installed Profile Switcher -- but I don't understand if this can accomplish my objective. I thought if I set the following:
Then I could keep separate As for the question "Why not use tags?" the thing is that I plan on using tags for different languages and frameworks, as well as training and testing projects. It's already probably going to be cluttered as-is, so I want a level of organization above that. Is what I am asking for feasible, and if so, do you have any recommendations/suggestions about how to go about it? (Is it just as simple as taking the above setting and changing it inside a code profile? Or is it much more than that?) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @jdkolassa , To summarize, this is not possible, not only because the Project Manager extension but also VS Code itself. I see three different approaches and their dependencies. User ProfilesThe extension has no profile concept, neither a way to split projects/configs between personal and work projects. Both, the This could change depending on how the new User Profiles feature (which the VS Code team has just started) would work. If the User Profile supports not only user settings but also how extensions manages state, maybe that could work out of the box. But you will have to wait until the feature is fully developed by the VS Code team. TagsIf you only care about Favorite Projects, I would say Settings SyncIf you rely on this VS Code built in feature, you are out of luck as well. The VS Code team still didn't provided an API for extensions to sync additional files ( In the end, right now, the best approach may be Hope this helps |
Beta Was this translation helpful? Give feedback.
Hi @jdkolassa ,
To summarize, this is not possible, not only because the Project Manager extension but also VS Code itself.
I see three different approaches and their dependencies.
User Profiles
The extension has no profile concept, neither a way to split projects/configs between personal and work projects. Both, the
projects.json
file (where the Favorite projects are stored) and theprojectManager.xxx.baseFolders
settings works for a single user/profile.This could change depending on how the new User Profiles feature (which the VS Code team has just started) would work. If the User Profile supports not only user settings but also how extensions manages state, maybe that could work out o…