editorconfig / editorconfig-visualstudio

EditorConfig Visual Studio Addin
http://editorconfig.org
Other
351 stars 74 forks source link

indent_style should convert spaces to tab #25

Open rhessinger opened 8 years ago

rhessinger commented 8 years ago

indent_style only flips the value in visual studio settings. I feel like it should automatically change the file from spaces to tabs upon save.

xuhdev commented 8 years ago

See here

rhessinger commented 8 years ago

I know there are tools out there, i just feel like this should be built into the extension.

jednano commented 8 years ago

@rhessinger it's been discussed and the main concern is that sometimes we are forced to work in unfortunate environments where the team doesn't want you to "fix" the indentation on source files, because it would mark all the lines red and create unnecessary merge conflicts for team members working on the same file.

The project goals of EditorConfig are not to "do" much anything in your editor, but rather to "configure" your editor properly for edits going forward. It's a configuration tool, not a linter and not a cleaner of sorts. There's a huge difference there.

The other tools to which @xuhdev pointed you take it a step further and do actual cleaning and such. You might also look at CodeMaid.