When I do a version control commit in IntelliJ, it generates a convenient list of code warnings in the Messages tab. How do I regenerate this list without doing a commit? I'm not interested in all inspection messages, I'm only interested in those warning messages which would be displayed during the commit.
If you find a warning in a file, you can inspect your entire project, or the necessary scope of files, to ensure that there are no more such warnings in your code base. From the main menu, select Code | Analyze Code | Run Inspection by Name… or press Ctrl+Alt+Shift+I . Type the inspection name in the popup.
Configure error highlightingPress Ctrl+Alt+S to open the IDE settings and select Editor | Color Scheme | General. You can also configure highlighting from inspection settings: go to Editor | Inspections, click any enabled inspection, and from the Highlighting in editor list, select Edit Highlighting.
Show all errors in one place:The Problems tool window appears if the Make project automatically option is enabled in the Compiler settings. It shows a list of problems that were detected on project compilation.
Can't you just make a custom inspection profile with the stuff you want (I have 5 different profiles that I choose between depending on what I want to check)?
Analyze -> Inspect Code -> Inspection profile -> ...
or
File -> Settings -> Editor -> Inspections
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With