How can I stop Visual Studio from changing the indentation when I save my file?

Viewed 14

I have the following lines in my C++ file in Visual Studio 2022:

IUnknownPtr m_spTagInterface;   // Pointer to the interface that contains this parameter's information
                                // (always nullptr for groups, assemblies and arrays

When I click the Save button, the second line is moved to the left edge:

IUnknownPtr m_spTagInterface;   // Pointer to the interface that contains this parameter's information
// (always nullptr for groups, assemblies and arrays

I thought this behavior was controlled by the Adaptive Formatting setting, but that's turned off. How can I stop VS 2022 from moving my lines around?

0 Answers
Related