nick-gravgaard / AlwaysAlignedVS

Elastic tabstops for Visual Studio
MIT License
122 stars 7 forks source link

Extension should respect editor Tab settings #18

Open Loophole62ndFF opened 3 years ago

Loophole62ndFF commented 3 years ago

I find this extension very useful for dealing with TSV data files (tab-separated value) in the Visual Studio editor, but don't really want it making changes to my C# code (which is all spaces-only). However, I found the extension was inserting tabs into my C# files for indentation whenever I added a new line. It took me some time to identify the extension as the cause (as I'd forgotten I'd installed it!). My C# text editor settings were all set to "insert spaces", "Adaptive formatting" was turned off, and the file was shown to be in "SPC" mode in the status bar. Then I'd press Enter, and boom : tabs inserted and the file is now in "MIXED" mode.

Would it make sense for the extension to consider those settings, and only apply its behaviour if the editor is set to use tabs for indentation, and/or the file mode is already "MIXED" or "TABS"? For me that would give the best of both worlds!

Thanks!