I know that the general tabs vs spaces thing is as old as the hills and mostly comes down to personal preference/sticking to the style of your team, I just wanted to ask a practical question about using spaces in Visual Studio. There are certain things about tabs that bug me and I wouldn't mind changing to spaces while we're a small team. It would be no different for writing the code in the first place but would mean you'd have to delete/backspace 4 times where I'd previously press it once.
Is there any easy way of deleting tab sized amounts of spaces easily (other than dragging with the mouse etc.) or if you've gone through the changeover yourself is it something that eventually doesn't bother you at all?
You can select all and use SHIFT + TAB to unindent. Save this answer.
Touch and hold the tab you want to remove. Drag the tab to the "Remove from group" area at the bottom of your screen.
I've been plagued by the same issue for years. Finally, I did something about it. Let me officially announce version 0.1.0 of the TabSanity Visual Studio extension for VS 2012.
It doesn't just stop at backspaces. It handles the delete key as well as arrow key navigation. Mouse interactions planned for near-future development.
There are some minor bugs I still need to resolve, but the groundwork is laid and I'm making steady progress. It's an open source project, so feel free to contribute on GitHub.
In Visual Studio, use Shift-Tab
. This will go back one tab-stop, even when using soft tabs.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With