VSPackage自定义编辑器-操作文件属于一个项目,而无需打开它. [英] VSPackage Custom Editor - Manipulate file belongs to A Project without opening it.

查看:96
本文介绍了VSPackage自定义编辑器-操作文件属于一个项目,而无需打开它.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个自定义编辑器,该编辑器应为项目中的其他文件生成代码.
但是,我不想将其他文件作为可见窗口打开.
当文件作为窗口打开时,我可以轻松使用RDT(运行文档表,其中包含打开的文件)从中获取IVsTextLines.
我可以在没有实际打开文件作为窗口的情况下获得文件的IVsTextLines接口吗?

谢谢,
> Aviram.




I have A custom editor that should generate code to other files in the Project
However I don't want to open the other files as Visible Windows
When The file is opened as a Window I can easilty use the RDT (Running Documents Table which refelcts the opened Files) to get IVsTextLines from it.
Can I get IVsTextLines Interface for A File
Without Actually open the Files as Window?

Thanks,
Aviram.









推荐答案

文件作为窗口打开
能否请您说明重现此问题的详细步骤?

谢谢.
file is opened as a Window
Could you please clarify the detailed steps to reproduce this issue?

Thanks.


这篇关于VSPackage自定义编辑器-操作文件属于一个项目,而无需打开它.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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