CLion 2018.2 Help

Sharing Your IDE Settings

CLion lets you share your settings between different instances of your IDE. This helps you recreate a comfy working environment if you are working from different computers and spare the annoyance of things looking or behaving differently from what you are used to.

You can share your settings in one of the following ways:

  • By configuring a settings repository. This allows you to sync any configurable components (except for the list of enabled and disabled plugins), but requires setting up a Git repository with the settings you want to share.

    This option is useful if you want to implement the same settings among your team-members.

  • By using the IDE Settings Sync plugin. It utilizes the JetBrains server, so no additional configuration is required. Synced settings are linked to your JetBrains Account, so they will not be available to other users.

    The settings you can sync include: IDE themes, keymaps, color schemes, system settings, UI settings, menus and toolbars settings, project view settings, editor settings, code completion settings, parameter name hints, live templates, code styles, and the list of enabled and disabled plugins.

Share settings through a settings repository

  1. Create a Git repository on any hosting service, such as Bitbucket or GitHub.

  2. On the computer where the CLion instance whose settings you want to share is installed, select File | Settings Repository from the main menu. Specify the URL of the repository you've created and click Overwrite Remote.

  3. On each computer where you want your settings to be applied, In the Settings/Preferences dialog (Ctrl+Alt+S) (Ctrl+Alt+S), expand the Tools node and choose Settings Repository. Specify the URL of the repository you've created, and click Overwrite Local.

    You can click Merge if you want the repository to keep a combination of the remote settings and your local settings. If any conflicts are detected, a dialog will be displayed where you can resolve these conflicts.

    If you want to overwrite the remote settings with your local settings, click Overwrite Remote.

Your local settings will be automatically synchronized with the settings stored in the repository each time you perform an Update Project or a Push operation, or when you close your project or exit CLion.

On the first sync, you will be prompted to specify a username and password. It is recommended to use an access token for GitHub authentication. If, for some reason, you want to use a username and password instead of an access token, or your Git hosting provider doesn't support it, it is recommended to configure the Git credentials helper.

If you want to disable automatic settings synchronization, from the main menu select File | Settings | Tools | Settings Repository and disable the Auto Sync option. You will be able to update your settings manually by choosing VCS | Sync Settings from the main menu.

Share more settings through additional read-only repositories

Apart from the Settings Repository, you can configure any number of additional repositories containing any types of settings you want to share, including live templates, file templates, schemes, deployment options, etc.

These repositories are referred to as read-only sources, as they cannot be overwritten or merged, just used as a source of settings as is.

To configure such repositories:

  1. In the Settings/Preferences dialog (Ctrl+Alt+S), click Settings Repository under Tools.

  2. Click icons general add and add the URL of the GitHub repository that contains the settings you want to share.

Synchronization with the settings from read-only sources is performed in the same way as for the Settings Repository.

Share your settings with the Settings Sync plugin

  1. Sign in to either of the following:
    • Your IDE: from the main menu choose Help | Register, choose to activate your license with the JetBrains Account and enter your credentials.

    • Toolbox App: click the gear icon toolboox app gear icon in the top right corner of the application, select Settings and click the Log in button. Note that by signing in to Toolbox App, you automatically sign in to all JetBrains products that you run.

  2. In the bottom-right corner of the CLion window, click the gear icon settings sync icon and select Enable Settings Sync. Your local settings will be exported to the JetBrains repository linked to your account.

  3. If you want to automatically sync the list of all enabled and disabled plugins, select the Sync plugins silently option. For instructions on how to sync plugins manually if it is disabled, refer to Sync plugins.

  4. On a different computer where you want these settings to be applied, click the gear button, and select Enable Sync. In the dialog that opens, click Get Settings from Account to import the settings from the repository.

    If you want to override the repository with your local settings, click Keep and Sync Local Settings.

Your local settings will be automatically synchronized with the settings stored in the repository each time you run a different IDE instance (or activate it after more than one hour of inactivity), or when any of these settings has been modified and this change has been applied.

Sync plugins

When you install or uninstall plugins, or change their state (enabled/disabled), you can apply these changes to all your IDE installations.

If you want to automatically sync plugins across IDE instances, select the Sync plugins silently option when you enable settings synchronization.

To sync plugins manually:

  1. In the bottom-right corner of the CLion window, click the gear icon settings synced icon and select Sync Plugins.

  2. A dialog opens showing a list of all plugins that were modified since the last sync. Click the arrow button next to each plugin and choose either to modify the plugin's state, apply the repository state to all installations, skip this change locally, or skip it across all IDE instances.

  3. After you've selected which action to take for each plugin, click Apply Changes.

Last modified: 27 November 2018

See Also