问题
My Visual Studio extension, is arranging Tab Sizes using ITextParagraphPropertiesFactoryService interface. That class is doing a great job, and helps me to set tab widths for all existing lines, but I have a problem to set tab sizes for new virtual line.
In other words, Visual Studio is setting caret position in VirtualSnapshotPoint
, and converting it to real tabs only when user enters some symbols.
Now, Is it possible to force Visual Studio to create real tabs instead of virtual spaces? I try to create edit on view, and insert real '\t' symbols, but VS still converts it back to virtual... This happen for both, block and smart indent tab settings
回答1:
So the behavior of blank lines being virtual space only is by design, and as best I know not changeable. If there's a specific problem with it, please update the question and we can go from there.
来源:https://stackoverflow.com/questions/20228444/convert-virtual-spaces-into-real-tabs-in-visual-studio-sdk