Save Actions

Compatible with IntelliJ IDEA
10.02.2017
43 955

Supports configurable, Eclipse like, save actions, including "organize imports", "reformat code", "rearrange code", "compile file" and some quick fixes like "add / remove 'this' qualifier", etc. The plugin executes the configured actions when the file is synchronised (or saved) on disk.

Available save actions

Code formatting:

  • Organize imports
  • Reformat code (only changed text or all)
  • Rearrange code (reorder methods, fields, etc.)

Build:

  • Compile file

Quick fixes:

  • Add final to local variable
  • Add final to field
  • Remove explicit generic type for diamond
  • Qualify field access with this
  • Remove unused suppress warning annotation
  • Remove final from private method
  • Remove unnecessary semicolon
  • Add missing @Override annotations

Other:

  • File inclusion / exclusion with regex support
  • Works on any file type Intellij IDEA can reformat (Java, XML, etc.)
  • Simple option page to activate / deactivate actions

Compatibility

Intellij IDEA Community Edition build 135+

Resources

Download plugin