ins for true 'smart tabs'?
'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#.
如果没有人提供“as-you-type”实用程序,那么带有convert-tabs
和indent=tab
选项的Astyle将在事后重新格式化代码。
I have mapped the tab-button to Edit.FormatSelection in Visual Studio to achieve this and it works very well for me. I have also remapped the normal functionality of tab so that I still can access them (Edit.InsertTab and Edit.TabLeft).
ReSharper做得非常好,并且高度可配置。
链接地址: http://www.djcxy.com/p/45556.html上一篇: 如何在使用SQL的表中找到N个连续记录
下一篇: 真正的'智能标签'?