How can I configure IntelliJ IDEA to have Annotation processors enabled by default?
Currently, I have to enable it manually for every imported project.
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.
Related
My code style settings keep getting reset when I create a new project, and I have to re-export from the default ide configurations.
is it possible to make some factory settings for the project (code style for java, general code style, optimize imports on the fly setting) so that when creating a project they are as I specified them in advance and not set everything up again?
File | New Projects Setup | Settings for New Projects...
How to remove the extra KotlinJavaRuntime at External Libraries?
My External Libraries has multiple KotlinJavaRuntime.
MacOS Big Sur ver.11.4
IntelliJ IDEA ver.2021.1.2 (Community Edition)
enter image description here
Select this library from the External Libraries node and use Main Menu | View | Jump to Source action (F4 default shortcut) to open this library in the Project Structure dialog.
Then check if this library is used in any of the project's modules by using Main Menu | Edit | Find Usages | Find Usages action (Alt+F7 default shortcut):
If the library is not used in any of the modules - just remove it from the project structure.
Whenever I need to edit pom.xml in IntelliJ it triggers rebuild/validation/sync event and grabs the focus from the editor. This way is pretty annoying working with pom.xml files with IntelliJ.
Pom.xml files are the place where it is super annoying. I just can't select a plugin from the list without these events triggered and the focus is taken away from the editor. So I have to hit Ctrl + Space again to get the list, etc.
Is there a way to disable this feature, or it is part of "No save is needed" way of doing things of IntelliJ?
In order to disable auto-build, you should disable Maven auto import in settings.
Go to File | Settings | Build, Execution, Deployment | Build Tools | Maven | Importing and disable "Import Maven projects automatically"
In 2022, this setting was renamed and moved. It is now in File | Settings | Build, Execution, Deployment | Build Tools and it's called Reload project after changes in the build scripts. You might try enabling it with External changes checked first. If that's still too annoying, then disable it entirely.
I've been trying to make IntelliJ treat *.yml files the same way it treats application.yml or bootstrap.yml.
What I mean is, that I have auto completion and syntax warnings when I edit for example a application.yml file, but none of these features when I edit a file called microservices-monitor-prod.yml which is located in a config server resource folder.
Is there any way to have the same IntelliJ features when editing such files ?
IntelliJ IDEA 2017.2 (currently available as RC) allows to choose custom naming schemes for Spring Boot configuration files (https://youtrack.jetbrains.com/issue/IDEA-133445)
I never use the spell check inspection in IntelliJ. I know I can disable it in my project by going to Preferences > Editor > Inspections, but as soon as I open or create a new project this inspection is enabled again.
How do I change the default set of enabled inspections in IntelliJ such that I can disable an inspection for the current and all future projects?
File | Other Settings | Default Settings | Inspections