So I'm doing some preprocessor #ifdef statemnts in a header file to manage configurations which I am trying to tab indent to make a little more clear logically. The issue is whenever I type the #, it instantly un-indents and left justifies. I've looked into Tools -> Options -> Text Editor -> C/C++ -> Code Sytle -> Formatting -> Indentation and set "Position of preprocessor directives" to "Leave indented" but still no luck. Any help would be greatly appreciated.
Below screenshot shows what is happening currently. I tab one section out for the #error line and the second I type that #, it unindents. image with error not tabbed
Thanks!
I tried setting "Position of preprocessor directives" to "Leave indented" but it is still auto left justifying.