How do you export Settings->Editor->Inspections->Java->Declaration redundancy->Unused declaration->Entry Points->Annotations and similar settings?
For example, I have configured Spring's @Value and @Autowired annotations to be implicitly written to get rid of a lot of warnings generated by the IDE. I have a bunch of similar best practice configurations I want to share with developers on the team.
I have tried the suggested approach in How to save/export all the settings of IntelliJ IDEA? but the exported zip does not contain my setting anywhere:
unzip settings.zip
grep -r -i autowire .
<empty result>
At the top of introspection I see I can export the Default IDE profile. The exported xml file also does not contain my annotations:
cat Default.xml
<profile version="1.0">
<option name="myName" value="Default" />
</profile>
CodePudding user response:
Project inspection profiles are stored in .idea/inspectionProfiles
directory and you can share it via the version control.
You can also make it an IDE global profile that will be stored in the IDE configuration directory, inspections
subdirectory. One can use read-only settings repository to share it with the team.
There is a known bug with exporting the inspection entry points.