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
5
votes
3 answers

Visual Studio Extensibility - Custom Language Text Editor Settings

I'm trying to develop a language service within Visual Studio, and so far I've been able to implement a basic Tagger for highlights and spans: However, I wanted to take it a step further and add my own section under 'Text Editor' so that I can…
5
votes
1 answer

How do I get the IVsTextView of a specific OutputWindowPane?

I have a visual studio integration package that tracks output from the debug window. I can get the IVsTextView of the output window, like so: IVsTextView view = GetService(typeof(SVsOutputWindow)) as IVsTextView; // grab text from the view and…
Jeremy Bell
  • 5,253
  • 5
  • 41
  • 63
5
votes
1 answer

How to correctly react on file change

I'm writing a Visual Studio editor plugin. I'd like the editor to behave similarly to other editors: if the edited file changes outside the IDE, I want the proper dialog window to be displayed and the document reloaded (if needed). The…
Spook
  • 25,318
  • 18
  • 90
  • 167
5
votes
1 answer

Register an extender provider for all project types

I have a Visual Studio extension that adds an property to the property grid of a project item. It is done by registering an extender provider like this: void RegisterExtenderProvider() { var provider = new…
Thomas Levesque
  • 286,951
  • 70
  • 623
  • 758
4
votes
4 answers

Is there a good way to stream the results from an external process into a Visual Studio output pane?

I have a custom output pane set up in a VsPackage similar to the following: ///-------------------------------------------------------------------------------- /// This property gets the custom output pane.
Dave Clemmer
  • 3,741
  • 12
  • 49
  • 72
4
votes
3 answers

How to add custom statistics to a TFS 2010 build?

I want to integrate the execution of a custom tool to our build (say CLOC, to gather LOCs by language) in TFS 2010. I know I can do that by creating a custom activity that I can then integrate into a custom template (or simply use the InvokeProcess…
Mac
  • 8,191
  • 4
  • 40
  • 51
4
votes
2 answers

VSIX package doesn't include localized resources of referenced assembly

I'm creating a VS2010 extension (let's call it MyExtension). The UI for this extension is in a different assembly (MyExtension.UI), the extension project only contains boilerplate code to call the UI from the menu command. MyExtension.UI contains…
Thomas Levesque
  • 286,951
  • 70
  • 623
  • 758
4
votes
1 answer

Performance of changing Visual Studio colors with custom add-in

I'm creating an add-in for Visual Studio 2008 that will allow me to switch between color schemes with a hotkey. I got it to successfully load a color scheme and apply it, but it's very slow. Here's the code that applies a scheme: // The Theme class…
4
votes
1 answer

Visual Studio 2017 - VSIX Package stops working after updating NuGet packages

Steps to reproduce: Open Visual Studio 2017. Select File.. New.. Project.. From the New Project dialog, select Extensibility.. VSIX Project.. Select the new Project from the Solution Explorer. Right Click and Add.. New Item.. Extensibility..…
Quark Soup
  • 4,272
  • 3
  • 42
  • 74
4
votes
2 answers

How to create extension for SQL Server Management Studio 17 in C# in VS2017?

I followed simple Hello World sample from Create your first extension: Hello World example from the Microsoft Docs to build an extension for SSMS 2017 Created VSIX project from Extensibility project template Changed "Start External Program" in…
4
votes
1 answer

How to build/extend a designer for Visual Studio

I just finished a quick intro in Linq2Sql and I decided to try my hands at it. To my dismay, it appears the dbml designer supports SqlServer and SqlClient providers only. After reading around, I found that I had to hand-code my classes in order to…
Alex Essilfie
  • 12,339
  • 9
  • 70
  • 108
4
votes
1 answer

In a Visual Studio Extension, how to respond to "Open Folder" as well as "Open Solution"?

My Visual Studio Extension responds to the opening of a solution via IVsSolutionEvents.OnAfterOpenSolution(). Visual Studio 2017 introduced "Open Folder" as an alternative to "Open Solution", but when you open a folder,…
RichieHindle
  • 272,464
  • 47
  • 358
  • 399
4
votes
4 answers

Get file path from Visual Studio editor

I'm developing a Visual Studio Package, written in C#. How do I get the full path of the active editor programatically?
Daniel Peñalba
  • 30,507
  • 32
  • 137
  • 219
4
votes
1 answer

In EnvDTE's Debugger.GetExpression method, what does "UseAutoExpandRules" mean exactly?

The documentation poignantly explains that this parameter should be "true if the auto-expand rules should be used; otherwise, false.", but what does it mean exactly? I can't seem to find any explanation online.
Omer Raviv
  • 11,409
  • 5
  • 43
  • 82
4
votes
1 answer

How to use VersionControlEx in Visual Studio 2017?

I have a Visual Studio 2013 extension that has a reference to Microsoft.VisualStudio.TeamFoundation.VersionControl.dll, from which the following type can be obtained: Microsoft.VisualStudio.TeamFoundation.VersionControl.VersionControlEx Today I…
JoanComasFdz
  • 2,911
  • 5
  • 34
  • 50