Visual Studio - Auto Formatting - protect some code areas from beeing auto formatted in a workgroup

66 views Asked by At

I am working in a team of developers, code is shared by SVN server/ client structure. I want to protect a code area from being auto formatted. Most of the other engineers are frequently working in this area of the code and some of them use auto format.

I do not want to turn it off permanently by using options of the UI (I know the possible settings already - but I do not want to force the team members to tick all those boxes and therefore do without auto format in all the code).

I am looking for a solution with aditional code like a region property or sth. like that... so just like

"#region" and "#endregion"

could look like this:

"#donotautoformat" and "#enddonotautoformat"

I did not find any hints (maybe searching wrong) anywhere but I cannot believe that something that simple does not exist in VS...

0

There are 0 answers