How to make certain settings global?

Answered

There are certain configurations that are stored in the project by default, but because I have many projects I have to configure it over and over for each project, and sometimes it's not as straightforward as it seems.

I've searched and searched, and it's driving me so mad I'm considering going back to one of the other two major Java IDEs, even though I really love everything else about IDEA.

My major frustrations are (were) with:

  • Inspections
  • Code Style
  • Dictionary (the one that new words get added to via the inspection)
  • Scopes and Copyright
  • Default Run/Debug Configurations
  • Live Templates

Sometimes, a global option is available, like with Inspections and Code Style, but when I select those, it just shows the settings stored in that global profile, it doesn't actually applt it. When I click Ok and go back to Settings, the local profile is selected again.

Two (half) solved cases:

  • Somehow along the road, on one of my pc's the Global Code Style template became selected and stayed active even after closeing settings. Now I just copy my .ideaC2016.3 settings folder across other computers.
  • After many long sessions of Googling I found out how to enable global Inspections by editing profiles_settings.xml and setting <option name="USE_PROJECT_PROFILE" value="false" />. Unfortunately it's still on a per-project basis, and I now copy this file across all my projects.

For all other settings (and many more I haven't listed), I still can't find a way to enable global settings (Dictionary being the most important one). And I also like a real solution for the two half solved cases.

15
31 comments

If it helps in the meantime, if you look in the .idea directory for your project, you can find xml files for various settings, e.g. Version Control settings are in vcs.xml, and if you check the various <component> tags it'll have groupings of features which handle that setting for various projects. You can set the setting you want in a project, grab the <component> tag for it in its configuration for that project, then copy it into the respective .idea folder for the same file in your other projects, or just copy-paste the whole file into the .idea folder for all your projects. Still not ideal but quicker than manually editing the settings through the UI.

0

Please sign in to leave a comment.