In my IntelliJ project, warnings/errors in the currently open file are shown with yellow/red markings in the ruler on the right-hand side of the editor. Is there anywhere I can easily see all errors warnings in the current project? The project is a Grails project, in case that makes any difference.
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.
To access this Problems panel, you must set your project to build automatically. Check the box for Preferences / Settings > Build, Execution, Deployment > Compiler > Build project automatically .
Search everywhereFrom the main menu, select Navigate | Search Everywhere or press Shift twice to open the search window. By default, IntelliJ IDEA displays the list of recent files.
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.
Doesn't the inspector do that? You can create a custom inspector set via "Settings -> Errors -> Inspection profiles" for the yellow warnings.
You can can then run the inspection for all files and then use "group by severity" to separate the warnings and errors out.
No idea if this will work for groovy. It does work kind of like that for java.
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