On The Fly Visual Code Reformat

Hi!

I just came up with a great idea for Intellij. At least I think so.

Different team members always have different preference on how code should be formated, some like braces on it's own lines, some like the method calls wrapped and so on.

Now, Intellij can fix all that with code reformat but that will "destroy" the file for other users so that's not really an option. How about an On The Fly Visual Code Reformat (you can use that name if you like :)? When a file is opened it will be visually altered to match my styling preferences but the change isn't saved to disk until I need to edit it, then it has to be saved of course.

This would mean that when I open a file it will look as if I would have reformatted it but no actual changes has been made. Wouldn't that be create?

2 comments

It is a great idea, and one that has been talked about for a long time
now. Pls add your vote/comments to
http://www.jetbrains.net/jira/browse/IDEABKL-397

Cheers,
N.

Andreas Andersson wrote:

Hi!

I just came up with a great idea for Intellij. At least I think so.

Different team members always have different preference on how code
should be formated, some like braces on it's own lines, some like the
method calls wrapped and so on.

Now, Intellij can fix all that with code reformat but that will
"destroy" the file for other users so that's not really an option.
How about an On The Fly Visual Code Reformat (you can use that name
if you like :)? When a file is opened it will be visually altered
to match my styling preferences but the change isn't saved to disk
until I need to edit it, then it has to be saved of course.

This would mean that when I open a file it will look as if I would
have reformatted it but no actual changes has been made. Wouldn't
that be create?

0

Excellent, thanks.

I've added my vote :)

0

Please sign in to leave a comment.