Frage

Visual Studio autoformat places a new line after all block comments - at least the one I am using. It does so obviously only for those comments, which come first on a line.

/*mark1*/ double[] a = new /*mark2*/ double[100]; 

is formated to:

/*mark1*/ 
double[] a = new /*mark2*/ double[100];  

Since I am using inline block comments as marks for a code replication tool, I want to disable that 'feature' for all block comments. Auto format should simply ignore them.

/*mark1*/ double[] a = new /*mark2*/ double[100]; 

should not break the line while auto formatting.

Is this possible and how? I tried everything in the "New Lines" section in the C# formatting settings, but without luck.

War es hilfreich?

Lösung

I suppose, it's simply not possible.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top