24

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
  • 7,967
  • 8
  • 55
  • 79

1 Answers1

41

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
  • 350,772
  • 137
  • 894
  • 800
  • 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
  • 1
    there is no "Other Settings" menu under "File" menu. Does its location changed? – mirec Aug 03 '20 at 10:25