14
Before you reformat you need to customize the formatter settings in the Preferences Dialog Java/ Code Style / Formatter to your K&R settings if the default settings don't match your requirements.
The Preferences Dialog is opened from Mainmenu / Window / Preferences
You can even configure a save action Java / Editor / Save Action to format source code on save.