Skip to content

Sync mutliple settings profiles #92393

Closed
Closed

Description

@wolf99

Settings sync is recently introduced in insiders.
(I don't run insiders, I just saw the announcement in the release notes so this may already be present)
To date I have used an extension for this that operates very well (mega props to the dev): https://github.com/shanalikhan/code-settings-sync

This extension uses private GitHub gists to sync settings, this means that there can be multiple gists for multiple settings "profiles". This is super handy for example where I have settings that I use across machines at work, and different settings that I use across personal machines.

Does, or can, the settings sync feature support similar?

Thanks!

Activity

  1. Tyriar commented on Mar 11, 2020

    @Tyriar
    Contributor

    wolf99 (@wolf99) can you give an example of what sort of profiles you use and how they differ (just settings, or extensions too)?

  2. added
    info-needed
    on Mar 11, 2020
  3. wolf99 commented on Mar 17, 2020

    @wolf99
    Author

    Sure, different settings are useful in cases where:

    • Work may have internal services instead of the generally available ones I use for my own work (e.g. SonarQube, PMD rule-sets, etc), so extensions and extension settings will be different
    • Common settings that differ, I need to use for work but that I don't want to use at home (e.g. eg layout may change due to different screen count, size and resolution).
    • Extensions that are useful in one setting but not in the other (e.g. I might use Java and Maven extension set at work, but at home it is just unused bloat; and vice-versa for the C set).
    • Or even down to the level of the version of or permissions for Windows (e.g. one environment may allow and have latest update for WSL, other environment does not allow WSL, or is held back version of windows meaning WSL is not of required version)
  4. filmgirl commented on Mar 18, 2020

    @filmgirl

    I'll add my own use-cases here too as this is a feature that is very important to me (and it made the Settings Sync extension less useful until support for multiple gists was added).

    As wolf99 (@wolf99) mentioned, there are scenarios where one machine (or one version of Code, say Insiders vs regular) needs to have different settings and extensions than another.

    For instance, I have different extensions installed across my Macs and my PCs (similar to what Chris mentioned in #88625) and my work-around is to have a different sync profile/gist for Mac and PC.

    • In addition to workspace settings for a project, I sometimes find it better to have a separate "profile" with a set of included/configured extensions for a specific purpose. That way, I can avoid extension bloat (as wolf99 (@wolf99) mentioned) when it is only needed in certain scenarios.
    • I like to have work/personal profiles of specific settings and extensions. There are some extensions I only use at work, as an example.
    • I have a "blank" profile which is useful when doing in-person or online demos. Yes, I can just use a portable version of VS Code or delete my settings file altogether, but when I'm doing a training or workshop, I want to have the same experience as the class and go through the process of setup together. Having this "blank" profile is really useful in this context.
    • There are sometimes differences in extension settings based on the context of where it is being used.
    • I like to keep different extensions and settings for VS Code vs VS Code Insiders, as I often use Insiders to test more bleeding-edge things and know stuff can break.
  5. sandy081 commented on Mar 19, 2020

    @sandy081
    Member

    We discussed about this partially (especially from insiders vs stable perspective) and decided not to separate them - #89066. Recommendation was to use different user accounts/profiles in such cases.

  6. added
    under-discussion
    and removed
    info-needed
    on Mar 19, 2020
  7. removed their assignment
    on Mar 20, 2020
  8. wolf99 commented on May 24, 2020

    @wolf99
    Author

    Hi Sandeep Somavarapu (@sandy081), Daniel Imms (@Tyriar) as #89066 has been closed with a resolution that does not facilitate this aspect (nor does it seem to rule it out), can this issue be considered again?

  9. added
    feature-request
    and removed
    under-discussion
    on May 26, 2020
  10. added this to the Backlog milestone on May 26, 2020
  11. ArturoDent commented on Jun 9, 2020

    @ArturoDent

    For similar, see Profile Switcher extension.

  12. theAkito commented on Aug 21, 2020

    @theAkito

    We discussed about this partially (especially from insiders vs stable perspective) and decided not to separate them - #89066. Recommendation was to use different user accounts/profiles in such cases.

    But:

    By default, the VS Code Stable and Insiders builds use different Settings Sync services and so do not share settings. You can sync your Insiders with Stable using the Settings Sync: Select Service... command to select the Stable sync service. The Select Service command is only available in VS Code Insiders.

    From https://code.visualstudio.com/docs/editor/settings-sync#_syncing-stable-versus-insiders

  13. Tyriar commented on Aug 24, 2020

    @Tyriar
    Contributor

    Akito (@theAkito) we changed our mind so we have a completely separate service with a separate backing database to roll changes out to first. Switching to stable is available so you can still sync between stable and insiders as we know that's something people want to do.

  14. wolf99 commented on Sep 1, 2020

    @wolf99
    Author

    Two more data points on this:

    • Container image repositories. At work we, and I imagine most orgs that develop proprietary containerised s/w, use internal image repos rather than public ones. This means settings such as repo URL and credentials are different, specifying them all on the command line every time in either work or home reduces the usefulness of both settings sync and also extensions that would use such settings.
    • With the release of WSL 2, the gap between settings in vscode that work for for using WSL 2 vs WSL 1 (on held back installs of Windows) is now getting quite noticeable.
  15. lawweiliang commented on Aug 11, 2021

    @lawweiliang

    Recently, I am having the same issues in VS Code extension as well. It was really troublesome if I switch javascript project to Java project or vice versa. I need to look around for the extension, enable and disabled it. So troublesome.

    Currently, my solution is using vs code for javascript projects and IntelliJ IDEA for Java projects. Yeah, I know, it is an ugly solution but it saves my time.

    Is there any update on multiple settings profiles? 😄

  16. Tyriar commented on Oct 11, 2021

    @Tyriar
    Contributor

    I think this request is captured entirely within #116740

    /duplicate

  17. added
    *duplicate
    on Oct 11, 2021
  18. wolf99 commented on Oct 11, 2021

    @wolf99
    Author

    If anything I would call that one a duplicate of this 😄

  19. Tyriar commented on Oct 11, 2021

    @Tyriar
    Contributor

    Yeah this was first but that one consolidates other related issues and has some ux explorations.

  20. locked and limited conversation to collaborators on Nov 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

*duplicatefeature-requestsettings-sync

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions