Reputation: 354
In Intellij Idea I can open Local Changes tab
select files and invoke formatting code. How i can do this in Eclipse?
How can I format and clean up ONLY changed files in Eclipse?
I can get list of changed files on "Git Staging" view, but select files on this view don't allow me to invoke Source/Clean Up... or Source/Format operation.
Upvotes: 3
Views: 1616
Reputation: 4358
Window > Preferences > Java > Editor > Save Actions
.Format Source code
.Format edited lines
.More Details are here, and also check the official help.
Upvotes: 0
Reputation: 983
Git Staging view
Show in
> Package explorer
Source
> Clean Up...
ou Format
PS: you can do this for former commits:
History
Show in
> Package explorer
Source
> Clean Up...
ou Format
Upvotes: 1