Code clean up

The Clean Up action can be executed on a single Java file, a Java package, a Java project or on multiple projects by selecting the Java elements and executing Source > Clean Up...

The Clean Up action allows to enforce a code style standard on multiple files or on a whole project. It also allows to apply quick fixes in batch to remove warnings, potential programming problems, unnecessary or unused code.

The clean up settings are stored in Clean Up profiles. Each project can specify the default profile to apply when Clean Up is invoked on one of its files. If a project does not specify a profile, the workspace default profile is used.