30

How can I configure IntelliJ IDEA to have Annotation processors enabled by default?

Currently, I have to enable it manually for every imported project.

enable annotation processor

Andrii Abramov
  • 10,019
  • 9
  • 74
  • 96

1 Answers1

45

Current IDE version:

File | New Project Settings | Settings for New Projects..., navigate to the compiler settings, annotation processing and enable this option before importing the project.

Previous versions:

File | Other Settings | Default Settings, navigate to the compiler settings, annotation processing and enable this option before importing the project.

CrazyCoder
  • 389,263
  • 172
  • 990
  • 904
  • 2
    After installing new Intellij 2018.2, I got the same problem. Default setting has already been set to correct value. But problem resolved only after File/Invalidate caches/Invalidate and restart – Geniy Aug 13 '18 at 10:58
  • in 2019.1 there is no default settings anymore... so how we can achieve this? – Arcones Jul 17 '19 at 09:36
  • 5
    @Arcones File | Other Settings | Settings for the new projects. – CrazyCoder Jul 17 '19 at 10:07
  • 2
    there is no "Other Settings" menu under "File" menu. Does its location changed? – mirec Aug 03 '20 at 10:25
  • 2
    It's, now, File -> New Projects Setup -> Preferences for New Projects... – Jin Kwon Feb 05 '22 at 05:56