Questions tagged [visual-studio-extensions]

Products and Extensions for Visual Studio which help you get the most out of Visual Studio.

The Visual Studio Gallery provides quick access to tools, controls, and templates to help you get the most out of Visual Studio.

Microsoft also offers a tutorial, where you can gather basic informations on how to develop extensions yourself

1700 questions
8
votes
3 answers

Automatically run extension code in Visual Studio on startup

Can I create an extension for Visual Studio that runs in the background as soon as the user opens the Visual Studio IDE? For example, I am building an extension that gets the current active file address in Visual Studio (with C#), but I would like…
8
votes
2 answers

Visual Studio Extensibility: ProvideAutoLoad for Package.cs for every UI Context

My goal is to create a "Visual Studio Extensibility" which adds a "Npm install" Context Menu Item to a package.json file. So far, this works great if I open a solution, because I've added the…
8
votes
2 answers

How can a VS extension target multiple versions in regard to Microsoft.VisualStudio.* references?

A few extensions that I'm using are broken under VS2012 because at some point they were updated to work with VS2013, by changing the version of referenced libraries. At runtime an error like this can be produced: Could not load file or assembly…
user247702
  • 23,641
  • 15
  • 110
  • 157
8
votes
2 answers

Visual Studio 2013 custom Test Adapter: how to debug?

I am writing a custom Visual Studio Test Adapter, and was wondering: how can I debug it? Right now I am following these steps: Adding a number of logger.SendMessage() log lines into my adapter code. Building the adapter Copying the dll from step 2…
8
votes
1 answer

Adding SubMenu to Visual Studio Project Item Node

How can I add a menu and sub menu items when right click on a file item visual studio solution explorer? I have one menu and three sub menu items which will be displayed when I right click on a file in solution explorer like the below picture. I…
Biju Thomas
  • 1,079
  • 3
  • 14
  • 27
8
votes
1 answer

How do I enable a "contextual" editor in Visual Studio?

A number of IDEs and editors are offering "contextual" editing tools: A simple example is the Assistant Editor In XCode. A secondary edit windows automatically loads a relevant secondary file depending on which context you are in. For instance, if…
Sklivvz
  • 30,601
  • 24
  • 116
  • 172
8
votes
1 answer

Visual Studio Extension: Wait for all projects to complete loading with IVsSolutionEvents OnAfterOpenSolution

I am looking for an event/interface to use that notifies me once all projects have loaded in a solution after opening a solution. I have implemented OnAfterOpenSolution in IVsSolutionEvents2 interface. This gets called immediately after the solution…
8
votes
4 answers

Visual Studio plug in to jump to test class

I was wondering if there is a plugin that allows me to jump directly to the test for the current class (Or create it if it doesn't exist). I guess this should be based on the convention that the test project is named like the project being tested +…
7
votes
1 answer

Package .exe into .vsix and call from Visual Studio extension

I have a Visual Studio package that does some of its work by starting an external process (using System.Diagnostics.Process) and communicating with it over standard input/output. Currently, I have the path to the .exe hard-coded which is obviously…
perelman
  • 1,747
  • 14
  • 25
7
votes
1 answer

How to obtain the absolute position of text cursor in Visual Studio 2010 extension

I've developed an IntelliSense-like Dialog, which should appear on a specific key-stroke. (My project is a VS-Package, my dialog will be opened as a command) The problem is, I don't know how to display my dialog at the current cursor-position. There…
7
votes
5 answers

Is there a Visual Studio 2010 extension to sort methods?

StyleCop mandates a particular sort order for the contents of C# files. For example, fields should be declared before methods and public declarations should come before private ones. It would be useful to have a Visual Studio extension to move these…
7
votes
2 answers

How can I find out when Visual Studio theme color changes?

I develop the Visual Studio package with a tool window. The UI of the tool window is based on WPF. In my user control I want to use current Visual Studio theme colors corresponding to the VS design. Therefore my question is how I can find out that…
pingvinius
  • 421
  • 1
  • 3
  • 13
7
votes
1 answer

VS Add-on to Copy full type name of identifier under the cursor into clipboard

Is there a visual studio add-on to copy the full type name of the identifier under the cursor into clipboard? Please DO NOT link me to "VS 2010 - easy way to copy full type name of a class/interface?" I don't want to deal with macros; only add-ons.…
Jordan
  • 9,642
  • 10
  • 71
  • 141
7
votes
3 answers

Existing connection forcibly closed at Manage Extensions, VS 2019

Just installed vs2019 community on a fresh laptop. Going to install some extensions and I see this If I refresh several times, there is a change that I may see the extensions, but in the next refresh or when going to next page of extensions, I see…
Thanasis Ioannidis
  • 2,981
  • 1
  • 30
  • 50
7
votes
1 answer

Git log history in Visual Studio 2019

I am not quite used with the Visual Studio and GIT. Is there an extension I can use for nicely previewing the Git repo history (seeing the merges and so on). The normal "View History" does not show the merges and branches in a tree format. Some like…