|
| How to get information about Visual Studio IDE??? |
 |
Mon, 31 Mar 2008 10:07:40 +000 |
Hi everybody,
I want to get the information about visual studio 2005
IDE. These are which .CS file opened, which file in active page, the path of
the opened file etc.....
Can anybody help me?.... its urgent....
Thanks in advance
Ambarish Jana
|
| Post Reply
|
| Re: How to get information about Visual Studio IDE??? |
 |
Mon, 31 Mar 2008 12:19:51 +000 |
The current active page is displayed as a tab on the top of the designer. The
path could be found by hovering the mouse over the tab that you'd like to get
the path of.
|
| Post Reply
|
| Re: How to get information about Visual Studio IDE??? |
 |
Mon, 31 Mar 2008 12:33:16 +000 |
My ever dear dearest Muthuswamy. Even I have eyes. I can also see which file is
opened. What I need to knw is how to get this information through code. This
time pls dont act dumb. Answer only if you know.
Take care dear. You seem to work a lot from your minds.....
|
| Post Reply
|
| Re: How to get information about Visual Studio IDE??? |
 |
Mon, 31 Mar 2008 13:12:02 +000 |
Hey, Ambarish.Jana, I found that a bit rude. But, given the misunderstanding
that happened in your question, this answer could give you the solution.
1: publicstaticstring GetPathFromRoot(string pathWithoutRoot)
2: {
3: string _ApplicationPath =
4: HttpContext.Current.Request.ApplicationPath;
5:
6: System.Text.StringBuilder _PathToReturn =
7: new System.Text.StringBuilder(_ApplicationPath);
8:
9: if (!pathWithoutRoot.StartsWith("/") &&
!_ApplicationPath.EndsWith("/"))
10: {
11: _PathToReturn.Append("/");
12: }
13:
14: _PathToReturn.Append(pathWithoutRoot);
15:
16: return _PathToReturn.ToString();
17:
18: }// GetPathFromRoot
|
| Post Reply
|
| Re: How to get information about Visual Studio IDE??? |
 |
Tue, 1 Apr 2008 08:11:30 +0000 |
I guess you want Visual Studio Extensibility API:
http://msdn2.microsoft.com/en-us/vsx/default.aspx
|
| Post Reply
|
|
|
|
|
|
|
|
|
|