Hi Franz-Josef and George,

> Setting formatting options at project level will help anyone opening the
> same files but using the same project to have the same formatting.

I can't endorse George's advice strongly enough - to set formatting options
(line length, indent length, and XML formatting rules) at the project
level. Ever since I discovered this technique and moved my team's project
file into version control, this problem of one person's format & indent
changing the whole file after another person's commit went away. (Our
project file also stores validation scenarios and a suite of external tools
that we can call from oXygen; see
https://github.com/HistoryAtState/hsg-project/wiki/setup#get-hsg-project.)

Also, we typically separate commits into two types - first, a substantive
commits, followed by a format & indent commit. This allows everyone to see
exactly what we intended to change, vs. the resulting formatting-only
changes.

Joe

On Tue, Nov 10, 2020 at 3:26 AM George Bina <[email protected]> wrote:

> Hi Franz-Josef,
>
> Well, the file is actually changed by the format and indent, so if you
> save it and it is different you should see that, no?
> One option may is to batch format and indent your files and commit them
> that way, so there will be no further changes when you format and indent
> them.
> Setting formatting options at project level will help anyone opening the
> same files but using the same project to have the same formatting.
>
> Best Regards,
> George
> --
> George Cristian Bina
> <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
> http://www.oxygenxml.com
>
> On 11/10/20 9:49 AM, Franz-Josef Knelangen wrote:
> > Hi there,
> >
> > really like this option – saves me a lot of Shift+Ctrl+P presses - but
> > have a problem that this marks all files as dirty and after saving they
> > will be displayed “changed” when committing the results to our VCS.
> >
> > Is there a way to work around this or do I have to disable that option?
> >
> > TIA,
> >
> > Franz-Josef
> >
> >
> > *AKG Software Consulting GmbH
> > Franz-Josef Knelangen*
> > **
> >
> > Uhlandstraße 12
> > 79423 Heitersheim
> > Germany
> >
> > Tel.: +49 (0)7634 5612-611
> > Fax: +49 (0)7634 5612-300
> > E-Mail: [email protected]_
> > Internet: www.akgsoftware.de <http://www.akgsoftware.de>
> >
> > Geschäftsführer: Dipl.-Ing. Artur K. Günther, Dipl.-Ing. Arno
> > Brüggemann, Dipl.-Ing. (FH) Bernhard Feser, Dipl.-Ing. Jens Günther
> > Sitz der Gesellschaft: Heitersheim, HRB 310383 (Amtsgericht Freiburg)
> >
> >
> > _______________________________________________
> > oXygen-user mailing list
> > [email protected]
> > https://www.oxygenxml.com/mailman/listinfo/oxygen-user
> >
> _______________________________________________
> oXygen-user mailing list
> [email protected]
> https://www.oxygenxml.com/mailman/listinfo/oxygen-user
>
_______________________________________________
oXygen-user mailing list
[email protected]
https://www.oxygenxml.com/mailman/listinfo/oxygen-user

Reply via email to