How to configure mixed Tabs and Spaces style?
Here's the tabs vs. spaces style I prefer:
- I prefer to use tabs for indentation.
- I prefer to use spaces for alignment.
- E.g., if I have to break a long line of code in C# into 2 lines, I want the 2nd line to be aligned to the 1st line at a "smart" position (e.g. after the brace of an if). So I want the 2nd line to be indendet with the same number of tabs as in the 1st line, and then insert spaces after the last indentation-tab to align the text in the 2nd line to that "smart" position of the 1st line.
- E.g. in XAML, I tend to place only one attribute per line and align the attributes. And I'd like to to the indentation with tabs and the alignment with spaces too.
C# example:
XAML example:
Is there a way to tell ReSharper to use/apply this tabs vs. spaces style when doing a "Cleanup Code"?
I'd like to use this tabs vs. spaces style for both C# and XAML. Is that possible?
I couldn't find anything like this in the ReSharper options dialog.
Thanks, Markus
Please sign in to leave a comment.
Hello,
ReSharper doesn't support such use case at the moment. You're welcome to
log a feature request through http://youtrack.jetbrains.net/issues/RSRP.
Thank you!
Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
Hi
Thanks for your reply. As you suggested, I posted this as a feature request here: http://youtrack.jetbrains.net/issue/RSRP-200204
Markus
annswer = feature is missing.
-> is now a feature request.