In Eclipse How can I edit with one format and agree with another

Everyone in my team uses the same formatter settings as the files in the SVN repository do not have formatting-based changes. I don’t like the format that I chose, and I can barely read it.

Is there a plugin for Eclipse or a parameter in Eclipse that will automatically reformat the file to my own style during editing and then reformat the file to my command settings before committing?

I saw tips for applying your current formatting before commit, but I want it to apply some other format before committing.

+4
source share
1 answer

Have a look at this question about configuring client-side pre-commit hooks for Subversion. Not a plugin, but maybe enough.

You can probably also set up something similar to the automatic formatting format the way you want it when placing an order so that you can remain largely unfamiliar with in-repo formatting.

Any row-based solution you request will almost certainly break Subversion functions such as diff . The best solution is probably to find a format that is consistent with everyone on the team, if possible.

0
source

Source: https://habr.com/ru/post/1381788/


All Articles