Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deleting tabs when using tabs as spaces

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?

like image 264
identitycrisisuk Avatar asked Jun 21 '10 16:06

identitycrisisuk


People also ask

How do you remove a tab from multiple lines or codes?

You can select all and use SHIFT + TAB to unindent. Save this answer.

How do I delete tabs on Google?

Touch and hold the tab you want to remove. Drag the tab to the "Remove from group" area at the bottom of your screen.


2 Answers

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.

like image 30
jedmao Avatar answered Oct 05 '22 22:10

jedmao


In Visual Studio, use Shift-Tab. This will go back one tab-stop, even when using soft tabs.

like image 161
Forgotten Semicolon Avatar answered Oct 05 '22 23:10

Forgotten Semicolon