One way to run FindBugs is to:
- Right click on the Java source file you’re editing
- Move cursor and hover over "Find Bugs"
- Wait until child menu appears
- Move cursor to select and then click on "Find Bugs"
You can greatly accelerate this process by modifying
eclipse/plugins/edu.umd.cs.findbugs.plugin.eclipse_1.3.9.20090821/plugin.xml
:
REPLACE:
label="Find Bugs"
WITH:
label="Find Bu&gs"
Then restart Eclipse with
-clean
command line argument. Now, to run FindBugs, you can just:
- Press Menu key
- Press G (this didn’t use to have an accelerator, but now does)
- Press F (this already has an accelerator)
Similarly, you can clear all FindBugs markers by pressing the key sequence
Menu G C
.