Questions tagged [vs-extensibility]

Visual Studio eXtensibility (VSX) is the ability to develop extensions to Microsoft Visual Studio.

Visual Studio eXtensibility (VSX) is the ability to develop extensions to Microsoft Visual Studio, an Integrated Development Environment from Microsoft. Microsoft Visual Studio itself is a tool can be used to develop applications for the .NET Framework and for the Win32 platform. The Visual Studio Software Development Kit, first released with Visual Studio 2005, included documentation, samples, and code to help develop products that integrate with the Visual Studio product family.

Generally, VSX represents the whole community which is a virtual and growing ecosystem that includes the Visual Studio SDK (VS SDK), all aspects of extending Visual Studio (packages, add-ins, macros, visualizers), .NET developers who extend Visual Studio, Visual Studio Industry Partner (VSIP) companies, and the VS SDK team (also known as the VS Tools Ecosystem team).

438 questions
3
votes
4 answers

Extending Visual Studio's "Code Snippet" functionality

When I write a test method, I type "testm", hit tab and magically see: [TestMethod] public void MethodName() { } When I type the methodName it is highlighted (can't show that here) as a "field" that I'm filling in. I'm sure you're all familiar…
Scott Baker
  • 10,013
  • 17
  • 56
  • 102
3
votes
2 answers

In a VS2010 Add-In in C#, how do you get the name and signature of the method your cursor is currently in?

In a VS2010 Add-In in C#, how do you get the name and signature of the method your cursor is currently in? I want to create an add-in that when run, gets the name and signature of the current method and then adds an "in" and "out" log message for…
Eric Brown - Cal
  • 14,135
  • 12
  • 58
  • 97
3
votes
0 answers

When writing a Visual Studio 2022 extension, how do I alter UI for files in the Solution Explorer?

The company I'm working for has very specific naming schemes and processes, which lead juniors or developers new to the company to make mistakes. We want to colour highlight certain files in the Solution Explorer based on whether they match a regex,…
David Cummins
  • 972
  • 6
  • 15
3
votes
1 answer

Extending Visual Studio 2010 - Replace text in editor with keyboard shortcut

I want to write an extension for the Visual Studio 2010 editor, that replaces/edits the selected text. I've figured out how to do this the "old way" by selecting a "Other Project Types - Extensibility - Add In", but as far as I know, this is pretty…
Yngve B-Nilsen
  • 9,606
  • 2
  • 36
  • 50
3
votes
1 answer

How to know if a Visual Studio project item is a WebReference?

I'm developing a Visual Studio extensibility package. I need to get the files under a project hierarchy using IVsSccProject2.GetSccFiles. Visual Studio behaves different for an standard folders and for WebReferences: An standard folder returns no…
Daniel Peñalba
  • 30,507
  • 32
  • 137
  • 219
3
votes
0 answers

VSIX is not installed on experimental instance when debugging

I have a VSIX solution in VS 2019 targeting 2015, 2017, and 2019. The solution builds fine, and I can install it manually using the .vsix file. It installs fine on all targeted versions of VS. But, when I try to debug it in VS2019 targeting 2015 or…
3
votes
1 answer

How do you prevent the VS Shell from getting priority on key/command bindings in a VSPackage ToolWindow?

I have wpf a user control that accepts input gestures to perform various commands. In the example image below, the user can press Ctrl+N to execute the New command to create a new item in the TreeView. When this user control is hosted within a WPF…
Dave Clemmer
  • 3,741
  • 12
  • 49
  • 72
3
votes
1 answer

How to Unit Test Visual Studio AddIn interacting with VS DOM

I have developed a Visual Studio Add-In which interacts with the Visual Studio DOM and amends the loaded solution. While I have endevoured to seperate the code which interacts with the DOM and can unit test the other business logic via unit tests,…
gouldos
  • 1,015
  • 1
  • 16
  • 30
3
votes
1 answer

Determination of the work mode with the project in Visual Studio 2017

In Visual Studio 2017 it is possible to work in a mode ‘Folder View’. This is the mode that runs when opening folder (File – Open – Folder...). You can also switch to it using the 'Solution Explorer' (switching from a 'Solution View' to 'Folder…
3
votes
0 answers

How to create Visual Studio Extension Tool Window Similar to Visual Studio Error Window

I'need to create a Visual Studio Extension with a tool window similar to Visual Studio Error window. I have added a ListView control inside a tool window to get the appearance. I have implemented the following to change the color based on selected…
Bandara
  • 780
  • 8
  • 29
3
votes
1 answer

Writing VS2010 Extension

I'd like to create an extension for Visual Studio 2010. The functionalities I need are these: Add a context menu item for Project (when user right clicks project name in his solution, he'll get my context item in the list). When he clicks, a new…
veljkoz
  • 8,384
  • 8
  • 55
  • 91
3
votes
1 answer

How to add a toolbar to a Visual Studio add-in?

I have created a new Visual Studio Add-in project. My project is able to add commands to Visual Stuido menu. This code is created by wizard. How can I add my custom toolbar to Visual Studio?
Captain Comic
  • 15,744
  • 43
  • 110
  • 148
3
votes
1 answer

Using built-in icons in Visual Studio extension

What step do I need to follow to use some of the built-in icons of Visual Studio in my extension toolbar (e.g. Open, Save, Run, Break icons)? I have tried using constants such as cmdidSave from stdidcmd.h in my VSCT file like this:
dotNET
  • 33,414
  • 24
  • 162
  • 251
3
votes
1 answer

Why does this Microsoft.VisualStudio.Imaging.CrispImage does not show anything?

I am trying to create a very simple WPF application to experiment this concept of the Visual Studio Image Service and Catalog. I don't understand why I cannot seem to be able to show any of the known images (using KnownMonikers) both on the WPF…
3
votes
2 answers

Get path of a Solution Item file in Visual Studio Add-In

I'm iterating through a solution and its projects and items and need to retrieve the path to the items on disk. I can retrieve the project file name from Project.FullName and can get a project items path using…
gouldos
  • 1,015
  • 1
  • 16
  • 30