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

Make it easy for users to import a profile as default #168867

Closed
isidorn opened this issue Dec 12, 2022 · 42 comments
Closed

Make it easy for users to import a profile as default #168867

isidorn opened this issue Dec 12, 2022 · 42 comments
Assignees
Labels
author-verification-requested Issues potentially verifiable by issue author feature-request Request for new features or functionality user-profiles User profile management verification-needed Verification of issue is requested verified Verification succeeded
Milestone

Comments

@isidorn
Copy link
Contributor

isidorn commented Dec 12, 2022

Some users in the user study were confused about what gets part of the newly imported profile and what will be a part of the default profile.

We should think about Novice users that have just been sent a profile for their work or are using one of the built-in profiles. They have no clue about VS Code, they have no clue about profiles. They do not want to be bothered by profile management. They want to use the one profile they just got.

My suggestion is helping them make the imported profile the default. Maybe we could detect if their default profile is "empty-ish". But I would love to hear better ideas.

@isidorn isidorn added under-discussion Issue is under discussion for relevance, priority, approach user-profiles User profile management labels Dec 12, 2022
@sandy081 sandy081 added this to the Backlog milestone Dec 12, 2022
@Pindar777
Copy link

@isidorn "importing a profile as default" is a very good idea!
I just got aware of the fact that a lot of settings are "offline" if not using the default profile.

@starball5
Copy link

Related Stack Overflow question: Why is my VS Code always opened with the default profile?

@jozsefk9
Copy link

Related Stack Overflow question: Why is my VS Code always opened with the default profile?

Where is that profile JSON file located please? I would like to edit it but I can't find it.

@LitileXueZha
Copy link

LitileXueZha commented May 13, 2023

Here are a little tricks:

  1. change the exported profile json key name to Default
  2. MUST change vscode display language to English
  3. import profile
  4. then it will show a "Overwrite" prompt...

It failed first when I open vscode in my country language, after switch to English, it worked. 🙂

UPDATE: After v1.81.0 you can't overwrite anymore, see this PR #188510, extactly in src/vs/workbench/services/userDataProfile/browser/userDataProfileImportExportService.ts.

@jozsefk9
Copy link

jozsefk9 commented May 14, 2023 via email

@tddschn
Copy link

tddschn commented May 26, 2023

I want to make my imported profile as default without changing of the name key in the json.

VS Code profiles have been around for quite a while, I wonder why this is still not implemented?

@BergenSoft

This comment was marked as spam.

@Mikeyzy
Copy link

Mikeyzy commented Aug 22, 2023

The easiest way to bypass this for now is to downgrade to version 1.75.0, override the profile, then upgrade to latest
1.75.0.23033
I wish they revert back to old behaviour with a dialog asking if you want to override or not.

@joachim-n
Copy link

I just wanted to export my single profile from my old machine to my new machine, and now VS code on my new machine is a mess :(

@pokey
Copy link
Contributor

pokey commented Sep 5, 2023

I had to do a clean reinstall of VSCode because my installation got messed up. Before doing so, I exported my default profile with the hopes of importing it as my default profile after reinstall. Is this not possible? Should I have done something other than exporting the profile to capture my settings? I prefer not to use cloud sync

@MaddyGuthridge
Copy link

+1 on this. I'm trying to share a VS Code profile with students in the university course. The current system means that the settings profile that they import doesn't get used by default, which makes the setup process extremely tedious.

@blinpete
Copy link

any updates?

@LitileXueZha 's solution didn't work for me cuz vscode wouldn't allow to overwrite the "Default" profile.

I am on vscode v1.82.1

@jay-herrera
Copy link

bump +1

@foxydevloper
Copy link

foxydevloper commented Oct 1, 2023

Just ran into this when reinstalling my computer, the old way of just overwriting the default profile was patched for some reason, so now this is just a huge pain and i'll have to do what this user suggests to transfer over all my settings:

The easiest way to bypass this for now is to downgrade to version 1.75.0, override the profile, then upgrade to latest 1.75.0.23033 I wish they revert back to old behaviour with a dialog asking if you want to override or not.

here's command to install the old version that supports it: winget install --force -v 1.75.0 vscode

@JackDotJS
Copy link

i recently had to reinstall VS code for a number of reasons. i, for one, am not interested in using "the cloud" for every single thing, so i simply exported my profile to keep my settings. upon reinstalling, it was only then did i find out i cannot overwrite the default profile with my original one. "no problem," i naively thought. "surely i can just set this new one as the default!" nope.

im sorry but are you serious right now? do you guys really expect users to just switch profiles every single tIme they open their text editors??? how is this issue nearly a year old and still open?

@ferceg
Copy link

ferceg commented Oct 28, 2023

Same here, new company laptop, fresh vscode, tried to import my exported profile to Default but it's not possible.

@brokenmold
Copy link

No long an option to overwrite, just a blanket "already exists" error. LTS and Insiders.

@nizarzitouni
Copy link

@LitileXueZha any news on this?

@Rasmus-123
Copy link

Please add this. It shouldn't be this difficult to switch PCs.

I made due with adding --profile "Default2" to my startup link, but it's still very annoying.

@Traveller23
Copy link

Please provide the ability to import the default profile. 😢

@onurusluca
Copy link

onurusluca commented Dec 1, 2023

I don't understand how this is even a problem? Why is this even not a default way? Isn't it so difficult to have an option to override the default profile? Please make this possible.

@starball5
Copy link

@ypxun yes, it goes under the user data directory

@x225franc
Copy link

x225franc commented Mar 20, 2024

this is a joke right ? how come "default" profile was a thing but got removed ? wtf is wrong with us willing to set "custom profile" as default ?

@nharrer
Copy link

nharrer commented Mar 29, 2024

The paths are different for Windows. Here is what worked for me as of March 2024 in Windows for VSCode Version: 1.87.2 (user setup):

1. Import your .code-profile file

2. Close VS Code

3. Go to `%APPDATA%\Code\User\profiles\<profile id>`
   
   * Copy `keybindings.json` and `settings.json` files and paste them to `%APPDATA%\Code\User` folder
   * Copy `extensions.json` and paste it to `%USERPROFILE%\.vscode\extensions` folder

4. Open VS Code

5. Switch to Default profile

6. Delete your imported profile

Note that I have vscode installed as user setup. For a system installed vscode, the paths are probably different again.

And yes, it's quite annoying that this issue is still not resolved after more than a year!

@dave-alvarez
Copy link

For those looking for manual fix, here's what works as of Dec 2023:

  1. Import your .code-profile file

  2. Close VS Code

  3. Go to ~/.config/Code/User/profiles/<profile id>

    • Copy keybindings.json and settings.json files and paste them to ~/.config/Code/User folder
    • Copy extensions.json and paste it to ~/.vscode/extensions folder
  4. Open VS Code

  5. Switch to Default profile

  6. Delete your imported profile

In addition, if you can't find files in this path ~/.config/Code/User/profiles/<profile id> on mac, maybe here it is ~/Library/Application Support/Code/User/profiles/<profile id>.

If anyone runs into this issue with VSCode - Insiders on Mac, the paths where you'll need to perform the manual fix are:
~/Library/Application Support/Code - Insiders/User

~/.vscode-insiders

@smileBeda
Copy link

@dave-alvarez not sure what Mac you have, but those paths do not exist on the latest MacOS when installing Visual Studio Code.
The ones provided by @ypxun do exist and appear to work, yet, it is still a hack, and VSCode needs to make an official, proper fix for this.

STOP providing "works for me" hacks that users will apply and possibly break their apps by messing around.

@dave-alvarez
Copy link

@dave-alvarez not sure what Mac you have, but those paths do not exist on the latest MacOS when installing Visual Studio Code. The ones provided by @ypxun do exist and appear to work, yet, it is still a hack, and VSCode needs to make an official, proper fix for this.

STOP providing "works for me" hacks that users will apply and possibly break their apps by messing around.

My comment clearly states VSCode - Insiders...

@ladusee
Copy link

ladusee commented Apr 7, 2024

UPD 11 Dec 2023 Override Default profile like export-reimport with included param "name":"Default" works only on VSCode 1.75 and lower
Direct link to install Win64 Other platforms link

Nice, it works.

For Mac users, simply download the dmg file, then open the downloaded app and import.

ARM64: https://update.code.visualstudio.com/1.75.0/darwin-arm64/stable Intel: https://update.code.visualstudio.com/1.75.0/darwin/stable

Insider

ARM64: https://update.code.visualstudio.com/1.75.0-insider/darwin-arm64/insider Intel: https://update.code.visualstudio.com/1.75.0-insider/darwin/insider

Today my VS Code settings got corrupted. Luckily I've been able to use backup from my secondary machine, but current versions of VS Code and VS Code Insiders do not allow to overwrite the Default profile. Thanks to this I was able to download both of version 1.75 (thanks to @ReeganExE), overwrite the Default profile, and update to the latest version.

I hope that devs will make this less of a hassle in the future.

@sandy081 sandy081 added feature-request Request for new features or functionality and removed under-discussion Issue is under discussion for relevance, priority, approach labels Apr 30, 2024
@sandy081 sandy081 modified the milestones: Backlog, On Deck, May 2024 Apr 30, 2024
@sandy081 sandy081 modified the milestones: May 2024, June 2024 May 27, 2024
@blainehill2001
Copy link

+1 for this issue

@sandy081 sandy081 modified the milestones: June 2024, July 2024 Jun 24, 2024
@sandy081
Copy link
Member

You can now import and replace any existing profile (including Default profile) from new Profiles Editor UI

Kapture.2024-07-18.at.16.57.25.mp4

sandy081 added a commit that referenced this issue Jul 18, 2024
sandy081 added a commit that referenced this issue Jul 18, 2024
@Marco5dev
Copy link

when will this come out to the main version of vscode not the insiders one ?

@gjsjohnmurray
Copy link
Contributor

Early August. See #220925

@sandy081 sandy081 added author-verification-requested Issues potentially verifiable by issue author verification-needed Verification of issue is requested labels Jul 22, 2024
@rzhao271 rzhao271 added the verified Verification succeeded label Jul 23, 2024
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Sep 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
author-verification-requested Issues potentially verifiable by issue author feature-request Request for new features or functionality user-profiles User profile management verification-needed Verification of issue is requested verified Verification succeeded
Projects
None yet
Development

No branches or pull requests