Skip to content

C_Cpp>Vc Format>Indent:Preprocessor Setting Not Applied in Nested Scenarios #11428

Open
@TwoBrushes

Description

@TwoBrushes

Environment

  • OS and Version: Windows11 22H2
  • VS Code Version: 1.82.0
  • C/C++ Extension Version: v1.17.5
  • If using SSH remote, specify OS of remote machine:

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.
image

3、how can i define the auto indent format like this?
image

Configuration and Logs

{
    "configurations": [
        {
            "name": "Win32",
            "includePath": [
                "${workspaceFolder}/**"
            ],
            "defines": [
                "_DEBUG",
                "UNICODE",
                "_UNICODE"
            ],
            "cStandard": "c17",
            "cppStandard": "c++17",
            "intelliSenseMode": "windows-msvc-x64"
        }
    ],
    "version": 4
}

Other Extensions

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions