4

I downloaded and installed SDK, after that I'm able to see project templates and I created first VSIX Project. But when I right click the project to add Item Templates like "Custom Command" or "Custom Tool Window" there is even no Extensions node available in "Add New Item" window. for reference see image below. I even try searching templates but no luck. (Working with VS2013 Ultimate C# project)

enter image description here

sairfan
  • 970
  • 2
  • 12
  • 20
  • I don't have these either. Where did you see 'Custom Command' and 'Custom Tool Window'? I've never heard of these (as templates). – Cameron Apr 28 '16 at 19:15
  • I came across this page https://www.visualstudio.com/en-us/integrate/ide/extensions/hello_world but later found that its about VS2015 but they did not mention it in article. – sairfan May 02 '16 at 14:58
  • Currently I'm trying to develop extension that allow me a button on tool bar which opens a window (form) by clicking a button on that form I want to add new class.cs file to solution and then it paste some text from clipboard to class.cs. Can you please guide me what I need for this task, so that I can start searching resources on that direction. – sairfan May 03 '16 at 19:09
  • 1
    That's a lot of steps :-) Adding a button: search "vsix add command vsct". Adding a file to a project: Probably the easiest is with EnvDTE's `Project.ProjectItems.AddFromFile` method. Opening it can be done with `VsShellUtilities.OpenDocument`. Pasting from the clipboard can be done by sending the `VSConstants.VSStd97CmdID.Paste` command from the `VSConstants.GUID_VSStandardCommandSet97`. – Cameron May 03 '16 at 19:24

0 Answers0