You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
voidfoo()
{
int x = 10;
#if0
int y = x;
#elseint y = x + 1;
#endif// etc.
}
If I try to collapse foo() in VSCode it will only fold as far as #if 0 due to the tab alignment. Aligning preprocessor statements to the left regardless of the alignment of the block itself is an extremely common style. It would be lovely if code folding understood that they are inside a function and should be folded with it.
The text was updated successfully, but these errors were encountered:
If I try to collapse foo() in VSCode it will only fold as far as
#if 0
due to the tab alignment. Aligning preprocessor statements to the left regardless of the alignment of the block itself is an extremely common style. It would be lovely if code folding understood that they are inside a function and should be folded with it.The text was updated successfully, but these errors were encountered: