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:
tabs_spaces.png

XAML example:
xaml_tabs_spaces.png

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

3 comments
Comment actions Permalink

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!"

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:
Image:tabs_spaces.png
XAML example:
Image:xaml_tabs_spaces.png
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

---
Original message URL:
http://devnet.jetbrains.net/message/5280516#5280516



0
Comment actions Permalink

Hi

Thanks for your reply. As you suggested, I posted this as a feature request here: http://youtrack.jetbrains.net/issue/RSRP-200204

Markus

0
Comment actions Permalink

annswer = feature is missing.
-> is now a feature request.

0

Please sign in to leave a comment.