Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fully isolated / sandboxed VSCode profiles #209810

Closed
o-l-a-v opened this issue Apr 8, 2024 · 5 comments
Closed

Fully isolated / sandboxed VSCode profiles #209810

o-l-a-v opened this issue Apr 8, 2024 · 5 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@o-l-a-v
Copy link

o-l-a-v commented Apr 8, 2024

I'd like the ability to have fully independant / isolated / sandboxed VSCode profiles to enable the ability to be signed in with different account for Git and settings sync. Each profile should act as a separate installation. Nothing except the application itself (VSCode) would be shared if using this feature.

That would allow us to easily have multiple Git profiles/accounts in VSCode. Related:

A suggested workaround by VSCode devs to mentioned related issue is to install VSCode and VSCode Insiders side by side. Problems with that:

  • I don't want to use preview/insider version of VSCode.
  • I have more than two accounts: My employer, one or multiple customers, my personal account.
@o-l-a-v
Copy link
Author

o-l-a-v commented Apr 8, 2024

Seems you can achieve this by creating a new profile with a different user data directory, then open VSCode from CMD like so:

code --user-data-dir "%APPDATA%\Code - Personal" --profile "Personal"

Currently testing this. If this works as I'd like maybe the feature request is to add the ability to optionally bind a different user data directory to a profile.


Edit: Can't sign in to GitHub as sign in with web browser opens VSCode with default profile again. So this does not solve this FR.

@sandy081
Copy link
Member

sandy081 commented Apr 9, 2024

/duplicate

If it is to support multiple github accounts, then I would wait until this feature is implemented instead of doing workarounds. I have to say any wordaround will have the limitation of supporting multiple github accounts.

@VSCodeTriageBot VSCodeTriageBot added the *duplicate Issue identified as a duplicate of another issue(s) label Apr 9, 2024
@VSCodeTriageBot
Copy link
Collaborator

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for similar existing issues. See also our issue reporting guidelines.

Happy Coding!

@VSCodeTriageBot VSCodeTriageBot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 9, 2024
@o-l-a-v
Copy link
Author

o-l-a-v commented Apr 9, 2024

/duplicate

If it is to support multiple github accounts, then I would wait until this feature is implemented instead of doing workarounds. I have to say any wordaround will have the limitation of supporting multiple github accounts.

Supporting multiple GitHub accounts is one use case. Maybe you just want everything but the application to be fully isolated/sandboxed for whatever reason? Like, syncing personal VSCode settings to personal profile (home and work PC). But work profile synced with a work account.

I got multiple GitHub accounts working by using device login btw, ref:

@sandy081
Copy link
Member

sandy081 commented Apr 9, 2024

Please refer to this issue - #166176

@microsoft microsoft locked and limited conversation to collaborators Jun 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

4 participants