将虚拟空间转换为Visual Studio SDK中的实际选项卡 [英] Convert virtual spaces into real tabs in Visual Studio sdk

查看:87
本文介绍了将虚拟空间转换为Visual Studio SDK中的实际选项卡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Visual Studio扩展正在使用

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.

现在,是否可以强制Visual Studio创建实际的选项卡而不是虚拟空间?我尝试在视图上创建编辑,并插入真实的'\ t'符号,但是VS仍将其转换回虚拟...这在块和智能缩进选项卡设置中都会发生

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

推荐答案

因此,仅作为虚拟空间的空白行的行为是设计使然的,而据我所知,它是不可更改的.如果有特定问题,请更新问题,我们可以从那里进行.

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.

这篇关于将虚拟空间转换为Visual Studio SDK中的实际选项卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆