editorconfig-visualstudio icon indicating copy to clipboard operation
editorconfig-visualstudio copied to clipboard

indent_style should convert spaces to tab

Open rhessinger opened this issue 10 years ago • 3 comments

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.

rhessinger avatar Aug 21 '15 17:08 rhessinger

See here

xuhdev avatar Aug 21 '15 19:08 xuhdev

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

rhessinger avatar Aug 21 '15 20:08 rhessinger

@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.

jednano avatar Aug 21 '15 20:08 jednano