默认启用注解处理器 [英] Enable Annotation processors by default
本文介绍了默认启用注解处理器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何将 IntelliJ IDEA 配置为默认启用注释处理器?
How can I configure IntelliJ IDEA to have Annotation processors enabled by default?
目前,我必须为每个导入的项目手动启用它.
Currently, I have to enable it manually for every imported project.
推荐答案
当前 IDE 版本:
文件
|新建项目设置
|新项目的设置...
,在导入项目之前导航到编译器设置、注释处理并启用此选项.
File
| New Project Settings
| Settings for New Projects...
, navigate to the compiler settings, annotation processing and enable this option before importing the project.
以前的版本:
文件
|其他设置
|Default Settings
,在导入项目之前导航到编译器设置、注解处理并启用此选项.
File
| Other Settings
| Default Settings
, navigate to the compiler settings, annotation processing and enable this option before importing the project.
这篇关于默认启用注解处理器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文