Single Inspection Missing "Fix all xyz problems" Option
已回答
In older versions of Intellij, I had the option to fix all inspection problems for a particular type within a file, but I don't see that option in 2016.3.4. Was it removed or am I missing something? To clarify in older versions:
- Place cursor on highlighted band of code which was identified as problematic by the Automatic Inspections
- Click Alt+Enter
- Right Arrow to get to sub-context menu
- Select "Fix all xyz problems"
So if I had 10 fields in a class, and the inspections are telling me that they should be defined as private instead of public. I could fix all 10 problems with a single operation. Now I have to fix each problem individually.
请先登录再写评论。
See https://youtrack.jetbrains.com/issue/IDEA-162507.
Should be fixed in 2017.1: https://confluence.jetbrains.com/display/IDEADEV/IDEA+2017.1+EAP.
Thanks Serge!
This feature is missing again in the 2018 series.
@Mkalinovits, please follow the code:
Fix all quick-fix fixes all `Declaration access can be weaker` cases in the sample (IDEA 2018.3.5). Please share the IDEA version and the code sample where the fix doesn't work correct. Thank you
Thanks for the quick response.
Fix all is working on your sample code, however it is not so intuitive to nest the fix all option under "fix".
But:
The below code has unnecessary "throws Exception" parts what can be fixed only one by one.

In previous versions (2017.x.x) it just worked.
Version: 2018.3.4 (same in 2018.3.5)
OS: MacOS 10.14.3
Please follow the duplicate issue:
https://youtrack.jetbrains.com/issue/IDEA-203478
and answer to your question:
https://youtrack.jetbrains.com/issue/IDEA-203478#focus=streamItem-27-3200512.0-0
Thank you!