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

Ability to use a custom profile as a default profile #181677

Closed
Tracked by #213721
nickfan opened this issue May 6, 2023 · 26 comments
Closed
Tracked by #213721

Ability to use a custom profile as a default profile #181677

nickfan opened this issue May 6, 2023 · 26 comments
Assignees
Labels
feature-request Request for new features or functionality user-profiles User profile management

Comments

@nickfan
Copy link

nickfan commented May 6, 2023

image

In VSCode, the Default Profile cannot be deleted, renamed, or replaced. It is hoped that a feature can be provided to use a newly created Profile to replace the Default Profile, or to allow deletion and renaming of the Default Profile, and set the newly created Profile as the default Profile.

@sandy081
Copy link
Member

Can you please provide the usecase why you want a custom default profile?

@sandy081 sandy081 added info-needed Issue requires more information from poster user-profiles User profile management labels May 23, 2023
@nickfan
Copy link
Author

nickfan commented May 23, 2023

@sandy081

When I first time used vscode, the Default Profile tried installed and configured too many messy extensions and settings. Now it has been split into grouped profiles according to needs, but the Default Profile cannot be deleted or not set as the default option.

@nickfan
Copy link
Author

nickfan commented May 25, 2023

and when you run command code xxx.txt from new path, it'll use the 'Default profile' not my recent used profile.

@sandy081
Copy link
Member

So you want to use a custom profile to be opened by default always? Is it for files only or also when you open folders?

@nickfan
Copy link
Author

nickfan commented May 26, 2023

also when i open folders
Or in another way, use the custom PROFILE settings and extensions etc. to replace the 'Default Profile' setup.

@sandy081 sandy081 changed the title Replace the Default Profile with named Profile Ability to use a custom profile as a default profile Jun 1, 2023
@sandy081 sandy081 added feature-request Request for new features or functionality and removed info-needed Issue requires more information from poster labels Jun 1, 2023
@sandy081 sandy081 added this to the Backlog milestone Jun 1, 2023
@nickfan
Copy link
Author

nickfan commented Jun 21, 2023

May I inquire if there has been any progress regarding the current issue?

@OldStarchy
Copy link

OldStarchy commented Jul 11, 2023

@sandy081 Use case here, I have a computer setup on which I am unable to use certain extensions (for security reasons), so I created a profile for use on this computer in which those extensions are disabled, I was hoping to set it as the default profile for this computer.

Eg. I don't need the unity debugger extension on my work computer, and I don't need Vue on my home computer.

It might be possible to manage this with the "install (do not sync)" option, but for that I think I'd need to uninstall all the extensions, then go home and install them all again. It would also then not sync those extensions to my laptop.

@ArnieGA
Copy link

ArnieGA commented Jul 19, 2023

@sandy081 Respectfully, it is just a basic user experience update that doesn't necessarily require a specific use case. The user should be able to arbitrarily set any profile as the default profile, at any given moment. Today I want "Profile A" to be the default profile. Tomorrow, or 15 minutes later, or a year from now, or seconds afterwards, I want "Profile 'X'" to be the default one. It shouldn't require a special use case.

Also, as a preventive measure, the 'default' profile should not be removable.

Thanks.

@asherber
Copy link

asherber commented Jul 30, 2023

Following up on @OldStarchy 's comment -- what would be great is the ability to set a default custom profile per machine.

My Default profile has just a few extensions and basic settings -- things that I would want to include in any child profile and use no matter what. Then I have a Home profile and and a Work profile. What I'd like to be able to do (and I think this is what @OldStarchy is asking for as well) is set my Home profile as default on my home machine and my Work profile as default on my work machine. Otherwise, every time I open a new Code window that's not tied to a workspace, I need to manually switch to the appropriate profile.

@gjsjohnmurray
Copy link
Contributor

At the moment, if you launch VS Code from the command line and specify the --profile "MyProfile" you will get an empty (i.e. no-folder) workspace.

@sandy081 if we were able to set a profile property in argv.json and have VS Code respect this, maybe that would help some folk. I guess the argv.json value should only be used when an empty workspace is opening, otherwise we'd lose the existing ability to set the profile for a folder / workspace and have it use that profile whenever it opens.

@nickfan

This comment has been minimized.

@acoomans

This comment has been minimized.

@1j01
Copy link

1j01 commented Jan 1, 2024

I have a "Journal" profile with only minimal extensions for markdown, spellcheck, etc.
My "Default" profile has many extensions, including Copilot, which I wouldn't feel comfortable using for journaling.
I always have a Journal window open, so any time I open a new folder, it defaults to the Journal profile.
I would love it if I could set the "Default" profile as default. The heuristic of "last used" is always wrong for me.
In my use case, I would prefer the default profile selection to be synced, though I wouldn't mind configuring this one thing when setting up a new computer — that is, I would rather have the feature even if it's per-computer.

@KubasuIvanSakwa
Copy link

Can I get assigned to this issue if still open

@Adiiieee
Copy link

is this issue fixed? @sandy081

@Adiiieee
Copy link

I have one extension in my default profile, which works only for linux, so I can't use default profile for mac. There should be a option to set custom profile as default, I mean this is pretty basic feature.

@jez9999

This comment has been minimized.

@johannww
Copy link

@sandy081, I have another use case here. I sometimes work on projects on my phone and GitHub codespaces. I don't want my 5 billion extensions to be loaded in this environment. I want a simple instance of VSCode to load fast. But every time I create a codespace, I have to wait for the installation of many extensions. Only after everything is installed can I switch profiles, and this takes time.

@sandy081
Copy link
Member

Ref - #194105

Introduced a new setting to choose which profile to use for new windows / folders for those a profile is not associated.

Image

This supports most of the asks in this issue (There are asks which are not related/off-topic are not considered like replacing default profile).

In favour of the above setting, I am closing this issue.

I would request users to check existing issues for the new use cases, if you do not find one, please file a new feature request with proper reasoning

@sandy081 sandy081 removed this from the May 2024 milestone May 27, 2024
@jez9999
Copy link

jez9999 commented May 27, 2024

@sandy081 Looks like it'll tackle this issue, thanks. I would suggest, though, that it also be made available as a link in the UI under File | Preferences | Profiles, maybe after Delete Profile, to improve discoverability.

@sandy081
Copy link
Member

Thanks for the feedback. Will take a note of it.

@AWenmanFK
Copy link

hey @sandy081, is this something that will be appearing after a future update? I can't see the segment in the settings anywhere:
image

@sandy081
Copy link
Member

@AWenmanFK Yes, this will be available in next release.

@murugappanrm
Copy link

@sandy081
I may have very good usecase for overriding the default profile. I am a freelance developer and i do development work at my client's place who commonly give me a new Workstation to work. I need to set up the VS code in these PCs each time. When i set up VS code it creates a "dumb" profile with nothing much. Therefore i use my "template" profile and import. Previously i could override the default and i always do. Why? After i leave, the people at my clients would take over the workstation and also need all the setting i have imported for them and avoids them dumping vs code as useless and takes them back to their existing editor. By overriding the default profile, these people need not worry about which profile to use and makes them see the benefits of using VS Code.

I hope this help in further consideration on the request.

@sandy081
Copy link
Member

sandy081 commented Jun 3, 2024

@murugappanrm Here is the issue for your use case - #168867

@murugappanrm
Copy link

@sandy081 , Thank you so much. The solutions stated there works great.

@microsoft microsoft locked and limited conversation to collaborators Jul 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality user-profiles User profile management
Projects
None yet
Development

No branches or pull requests