Closed prabhavdogra closed 3 years ago
You can toggle format on save on or off from the context menu. It sometimes gets in the way. What formatter is doing this?
I tried all the pre installed formatters and all of them are formatting it in in the wrong way same is happening for macro of loops
Before:
#define forp(i,a,b) for(int i = (int)a; i < (int)b; i++)
forp(i, 0, n)
cin >> a[i];
After:
forp(i, 0, n)
cin >> a[i];
Also a little more detail about where in context menu will be greatly appreciated. Thank you,
The ctl-p menu then filer for standard format
Can we disable auto formatting of code on saving as it removes indentation from macros and #ifdef among other things.