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.
Activity
sean-mcmanus commentedon Feb 20, 2018
I don't believe we can implement this yet -- see microsoft/vscode#3422 .
sean-mcmanus commentedon Apr 26, 2018
We're tracking this with #407 .