How to make "#if UNITY_EDITOR" automatically unindent all the way to the left?

I'm trying out Rider to see if I'd like to purchase it, and it seems okay so far. But one thing I can't figure out is how to get the preprocessor directive "#if UNITY_EDITOR" and its matching "#endif" to outdent all the way to the left. I found "Preprocessor Directives" in Settings > Editor > Code Style > C#, and tried various settings for "Indent #if, #else, #endit", but nothing worked to FULLY outdent those directives.

This seems like a pretty legit thing to expect. Am I missing something?

1 comment
Comment actions Permalink

Hello Greg,

Thank you for reporting the issue, I have created a corresponding record on our bug tracker: RIDER-90336. The issue is handled by a dedicated developer there. Please upvote it and click on Watch to monitor the progress of the issue.

Let me know if you have other questions. Have a good day!


Please sign in to leave a comment.