Project settings apply to the current project only. They are stored in the .xml format together with other project files in the .idea directory. Project settings can include VCS configuration, code style options, the list of language inspections, and so on.
To configure project settings, selectfor macOS ( Ctrl+Alt+S ) or for Windows and Linux.
In the Settings/Preferences dialog, settings that are marked with the icon apply only to the current project. Other settings are global and apply to all existing projects.
If you want to share settings between the already existing projects, you can use Settings Repository or the Settings Sync plugin. You can also export the settings into a ZIP archive and import them later to another IDE instance.
Default settings for new projects
You can configure settings not only for the current project, but also for all the projects that will be created later. For example, you can set particular CMake profiles as default for all new projects.
From the main menu, select.
Share project settings through VCS
List of non-shareable configuration files
CLion identifies configuration files and adds them to the list of ignored files automatically. However, if you are sharing your project manually, we recommend that you avoid placing these files and folders under version control:
For the full list of files, refer to How to manage projects under Version Control Systems and JetBrains.gitignore.