Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

VSPackage: create new instance of custom editor without existing file

$
0
0

I probably just need a pointer to a code sample.

I have a custom editor that I used the Editor with Toolbox sample as a template.  If I create a new text file with the desired extension, it opens nicely in the custom editor.  No problems here.

But I have a menu item that I need to open a new instance without a file already existing.  Similar functionality to File > New > File ... 

But instead the user just clicks the one custom menu item and it opens a new instance like MyNewInstance1.xxx (no need for New File dialog).

Do I need to call the CreateEditorInstance on the EditorFactory?  Or OpenSpecificEditor (or similar)?  If so, a link to sample code would help.  Most of the samples I've seen assume an existing file.


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>