Questions tagged [vspackage]

VSPackages are software modules that extend the Visual Studio IDE by providing UI elements, services, projects, editors, and designers.

VSPackages are part of the Visual Studio eXtensibility (VSX) framework that allow developers to develop software modules to extend the Visual Studio IDE. Typical elements that are developed in VSPackages include tool windows and editors to provide additional UI functionality and menus to provide access to additional services and functions.

363 questions
2
votes
1 answer

Append item to Add menu of solution- or project node in Solution Explorer

How can I add a sub menu for the Add menu item when right click on a visual studio solution explorer? I have to add a single sub menu item which will be displayed n right clicking the visual studio solution and move to the Add option in that menu. I…
Anju
  • 39
  • 8
2
votes
2 answers

In a Visual Studio package, can I simulate (DTE) GetService(typeof (DTE)) for tests?

In my package I am using (DTE) GetService(typeof (DTE)) to get information about the currently opened solution. Is there a way to simulate this for a test, particularly so that I can build using dte.Solution.SolutionBuild? Code in main package…
2
votes
1 answer

How to integrate a custom Project Template and Wizard into Visual Studio package?

Current Situation I have created a Custom Project template with an attached wizard which will ask the user for some options and it will generate some code (for instance: INIT method, some objects initialization). I have deployed this via the VSIX…
2
votes
1 answer

Using IVSInvisibleEditor and IVSPersistDocData but how do i release them?

I am using the IVsInvisibleEditor in a custom tool window to load up a t4 file into a hosted vs editor. I call the IVsInvisibleEditorManager.RegisterInvisibleEditor method passing in the t4 file like they do here. I then use the GetDocData method…
Frank
  • 2,178
  • 2
  • 17
  • 24
2
votes
1 answer

How to create command menu item with checkbox?

I'm writing a VSPackage and I need to have menu item with checkbox, just like on this sample image below: I went through this msdn reference regarding .vsct files, bud didn't fine any information explaining how to do it. What I have now is standard…
jwaliszko
  • 16,942
  • 22
  • 92
  • 158
2
votes
3 answers

How to obtain a reference to the Package object within VSPackage MSVS extension?

I'm creating in C# my first Visual Studio extension (VSPackage). I have two classes in it: class MyPackage : Package { ... } class SomeOtherClass { ... } An object of SomeOtherClass is instantiated after the package is loaded and needs to…
Al Berger
  • 1,048
  • 14
  • 35
2
votes
1 answer

Add Syntax Highlighting to IElisonBuffer

I'm working on a project where we've split up C# code into functions and stored these functions within IElisonBuffers. I've got Intellisense hooked up, and the buffers interact with other extensions fine as shown below: However, I cannot get…
JoshVarty
  • 9,066
  • 4
  • 52
  • 80
2
votes
2 answers

Keyboard shortcuts not working after process attach (Visual Studio 2013 bug during debugging)

I've written small VSIX plugin which is able to attach debugger to particular process. This process is written using c# and c++ code, so I need to attach to it using both managed and native engines. From Visual Studio it can be achieved simply by…
jwaliszko
  • 16,942
  • 22
  • 92
  • 158
2
votes
2 answers

Get Add Connection event of Server Explorer window inside VS package

I'm trying to fire some changes on a Menu after a new connection is added or removed from the Server Explorer window on my Visual Studio package. So I'm looking for an event that I can subscribe or any other way that allows me to detect when a new…
gab
  • 325
  • 1
  • 12
2
votes
0 answers

Visual Studio Exstensibility How to Create Cutom Designer

I'm attempting to use Visual Studio extensibility (VSX) to create a visual studio custom designer. I'm using the default extensibility 'Package' project type with the Visual Studio package creation wizard which provides for the creation of a custom…
CodeBon
  • 1,134
  • 8
  • 9
2
votes
1 answer

Getting the full path for an Item selected through IVsHierachy

Hi I'm making a visual studio package which creates a context menu in the solution explorer when certain types of file are right clicked. I have the menu working but I need to grab the full path rather than the filename. I do this because selecting…
Ian Murray
  • 339
  • 1
  • 12
2
votes
1 answer

How do I make a separate menu in my Visual Studio Integration Package (VSPackage)?

How do I make a separate menu in my Visual Studio Integration Package (VSPackage)? Every menu I create gets placed under "Tools" in VS2010. How do I get my own menu group in VS and then how do I add items underneath that menu group?
Denis
  • 11,796
  • 16
  • 88
  • 150
2
votes
1 answer

How do I change icon on a Visual Studio Integration Package (VSPackage)?

So I have a standard Visual Studio Integration Package that I created using the VS2010 Visual Studio Integration Wizard that pretty much has the following code and I am trying to figure out how to change the icon in the Tools menu for my…
Denis
  • 11,796
  • 16
  • 88
  • 150
2
votes
2 answers

Add context meu item to all files and folders in the solution explorer using vspackage

I want to add a menu item to the context menu of all the files and folders in the solution explorer. I was able to add my menu item to the project node with this entry in the vsct file..
niruj
  • 125
  • 2
  • 9
2
votes
1 answer

How to get current solution configuration in vspackage?

I'm making Visual Studio package, and I need to know opened solution name and configuration. How can I get this information ?
zdebyman
  • 550
  • 1
  • 4
  • 22