codeformatter icon indicating copy to clipboard operation
codeformatter copied to clipboard

keep tabs instead of spaces

Open awaescher opened this issue 10 years ago • 3 comments

I know this is your default and written down in the documentation: We use four spaces of indentation (no tabs) but we use tabs by default in my company. However the rest of your rules will perfectly fit ours.

Is it possible to exclude this feature to keep tabs (or even convert spaces to tabs)?

awaescher avatar Sep 04 '15 11:09 awaescher

@BertTank I believe you can disable the tab formatting by adding /rule-:FormatDocument at commandline.

genlu avatar Sep 04 '15 18:09 genlu

That's right, but I want to have the formatting of that rule - just not with spaces but with tabs. Btw, I've done it by myself on https://github.com/BertTank/codeformatter but it would be nice to have that by default.

awaescher avatar Sep 05 '15 09:09 awaescher

@BertTank Yeah, @michaelcfanning is working on adding solution/project specific options to formatting rules. This space-tab conversion option will definitely be considered.

genlu avatar Sep 05 '15 16:09 genlu