Visual Studio Process中的C#打开文件 [英] C# Open(ed) Files in Visual Studio Process

查看:91
本文介绍了Visual Studio Process中的C#打开文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!

我有一个应用程序(WinForm C#),其中我想检查Visual Studio是否打开了文件,如果是,请转到VS的该实例,在屏幕上获取该选项卡,然后转到该文件中的特定行.

I have an App (WinForm C#) in which I want to check if Visual Studio opened file, and if so, go to that instance of VS, get that tab on screen, and go to a specific line in that file.

有可能吗?

当前我正在使用Process.Start在新实例中打开文件.

Currently I'm using Process.Start to open the file in new instance.

推荐答案

您能告诉我们您在那儿得到的代码吗?
Would you show us the code you got there?


这篇关于Visual Studio Process中的C#打开文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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