Assuming I have the following code in C #:
void Func () { int i=3; #if DEBUG ... #endif for (int j=0;j<i;j++) { ... } }
If I use Edit->Advanced->Format document , it is reformatted to this (using my current code formatting settings):
void Func () { int i = 3; #if DEBUG ... #endif for ( int j = 0; j < i; j++ ) { ... } }
Is there a way to prevent #if and #endif lines from moving to the far left? I could not find any settings for them, but I hope that there will be a registry setting that will control how it works.
I welcome you any advice: this behavior is driving me crazy, since my code contains several hundreds of such blocks, they continue to be violated by VS.
c # visual-studio-2008 visual-studio
xxbbcc
source share