Bug 397857 - [formatter] add option to only format modified lines.
Summary: [formatter] add option to only format modified lines.
Status: NEW
Alias: None
Product: Xtend
Classification: Tools
Component: Core (show other bugs)
Version: 2.4.0   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-10 08:52 EST by Moritz Eysholdt CLA
Modified: 2013-01-10 08:52 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Moritz Eysholdt CLA 2013-01-10 08:52:57 EST
A common problem with formatting is (when not everybody in the team uses the formatter in exactly the same way), that formatting a complete file will add  unnecessary and confusing changes to your next commit.

Let's play around with the idea that the formatter may only modify lines that already have been edited by the developer. In other words - the formatter may not format lines that would enlarge the next commit.

This would require (optional) integration with VCSs, e.g. EGit.

Maybe even an action such as "format staged changes" would be useful.