Eclipse auto-format can be configured to only considered edited lines, for this exact use-case.