New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C_Cpp>Vc Format>Indent:Preprocessor Setting Not Applied in Nested Scenarios #11428
Comments
Thank you for submitting your issue! To address your concerns in order:
class MyClass
{
void Function()
{
#if DEBUG
DebugPrint();
#endif
}
} If you find the same issues, please let me know.
|
is working as intended, but
#if TEST will "leftmostcolumn" |
On the second line of the comment, @file has moved back one space, causing misalignment with @author below. I disabled the c/c++ extension and now it aligns correctly. |
Thank you for clarifying these scenarios, there is indeed a bug with preprocessor formatting in nested scenarios that our team will take a look at. I will further investigate the issue with doxygen formatting to verify if further action needs to be taken. |
@TwoBrushes the bug with preprocessor statements has been filed with our Visual Studio team (Internal Bug Number: 1885941). Please use this GitHub issue to keep track of when a fix for this issue has been addressed. Thank you! |
Environment
Bug Summary and Steps to Reproduce
1、when i set C_Cpp>Vc Format>Indent:Preprocessor to "none", but the Preprocessor(#define , #include...) always set to "leftmostcolumn"
2、When I use Doxygen to generate comments, the second line will automatically indent by one space.
3、how can i define the auto indent format like this?
Configuration and Logs
Other Extensions
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: