0

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.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.