skip to Main Content

So, is there a way to make vscode always open with a profile that I created but not the default one?

I imported the profile which I exported from my old PC, and I switch the File > Preferences > Profiles to the profile that I just imported.
At first it works fine, but after I close VS Code and open it up again with a new file, my vscode just opened with the default profile and there is no extensions and all font settings, color settings…etc. I have to switch the profile after I open VS Code evey single time.

I tried to find a way to set the profile I imported as default, but I didn’t find that option.
And I also found that I can only delete those profiles that created or imported by me. I try to delete the default profile and only keep my own profile but it just doesn’ work that way.

I also serched on google to find a way but all I can found is VS Code’s official docs. And I didn’t find what I want in it.

3

Answers


  1. Why is my VS Code always opened with the default profile?

    Because… it’s the default profile 😐

    So, is there a way to make vscode always open with a profile that I created but not the default one?

    If you invoke code --help, you’ll see:

    --profile <profileName> Opens the provided folder or workspace with the given profile and associates the profile with the workspace. If the profile does not exist, a new empty one is created. A folder or workspace must be provided for the profile to take effect.

    From your described use-case, you may be interested in the following issue ticket: Make it easy for users to import a profile as default #168867, and maybe this one: Cannot set contributed profile as default #127573 (for profiles contributed by extensions). You can show your support for the issue ticket by giving a thumbs up reaction to the issue. But please don’t make a "me too" comment. "me too" comments generally come off as annoying to repo maintainers because they clutter up discussion and don’t contribute anything of significant value.

    For your reference / learning purposes, I found the above first issue ticket by googling "site:github.com/microsoft/vscode/issues set profile as default -terminal".

    Login or Signup to reply.
  2. I can replicate your issue – reverting to the Default profile when re-opening vscode in the Stable build v1.76.

    But not when testing in the Insiders Build v1.77. So apparently that annoyance has been fixed. And will probably be out in Stable v1.77 early April 2023.

    Maybe as a result of reverting the behaviour reported here: Opening a new folder should use the current profile.

    Login or Signup to reply.
  3. You’ll have to overwrite the Default profile with your new profile.

    Just change the value of the "name" attribute in the profile JSON to "Default", then import profile from that modified JSON and say yes to overwrite.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search