views:

243

answers:

3

Hello.

'Smart Tabs' concept allows to automatically insert tab character for block indentation and space characters for in-block formatting. It's described here. Unfortunately, Visual Studio's 'smart tabs' option in text editor settings just indents text on enter press. Same name, completely different and near useless thing :). So, maybe someone knows of a visual studio addin that can change how 'tab' key work so it will insert tab characters and space characters according to rules mentioned above? Any hints are welcome.

Update: I need it for C++. According to comments, ReSharper can do something like this, but only for Basic and C#.

A: 

ReSharper does this pretty well, and is highly configurable.

Allon Guralnek
Does it support any language (i'm interested in C++ and JavaScript) or only Visual Basic and C#?
Eye of Hell
That should be ReSharper. (Your link is right but the link text says ReShaper).
Vicky
Whoops, thanks for that.
Allon Guralnek
@Eye of Hell: Yes, it only supports C# and VB.NET for smart tabs.
Allon Guralnek
Updated my question and mentioned C++ :).
Eye of Hell
A: 

Have you looked at Visual Assist?

It's been a while since I used it (back on VC++ 6.0!), and I can't see a mention of "Smart Tabs" on the home page, but it might be there somewhere.

ChrisF
I have licensed version of latest Visual Assist X installed. No options for tabs :(.
Eye of Hell
+1  A: 

If no one comes up with an "as-you-type" utility, then Astyle with its convert-tabs and indent=tab options will reformat code after-the-fact.

Mark Tolonen