Click here to Skip to main content
16,022,971 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello all,

Can I develop my own editor for VS2005?

Task to achieve.
With XML files, when user right click and select open with,
My editor name should appear in list and file (XML) should be visible in gridview or treeview format.

Is it possible ? How ?
Posted
Updated 7-Dec-09 5:58am
v2

Sure. You can select any program as the default editor for a given file type. Just right click on the file and there should be some option like "Open With" or "Edit With" and Visual Studio will show a dialog with the programs it's currently associated with. You can then browse for a new program and then set that as the default. Although I'm not sure what kind of work would be involved in making the editor inline (i.e., one of the windows actually inside Visual Studio, like the existing XML editor).
 
Share this answer
 
That true but how to do it ?
M trying to develop it with VSPackage from vs2008.
But not finding exact path ? How to do it ?
Coz VSPackage provide Custom editor which contain only textarea n I want output in treeView or GridView ? So how to code it ?
 
Share this answer
 
So you want to make your own editor? Easy, create a Windows Forms or WPF application that can take a file and display it however you want. The file path will be sent as a command line argument when you open it via Visual Studio. Open the file at that path, parse it, then display it how you want in your Windows Form or WPF application.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900