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

Getting the current EnvDTE or IServiceProvider when NOT coding an Addin

I am coding up some design time code. I want to use this snippet: (Found here) var dte = (EnvDTE.DTE) GetService(typeof(EnvDTE.DTE)); if (dte != null) { var solution = dte.Solution; if (solution != null) { string baseDir =…
Vaccano
  • 78,325
  • 149
  • 468
  • 850
10
votes
3 answers

VS 2010 Extensions -- Missing Structure Adornment & AllMargins plugins

I am rebuilding my DEV image and I am no longer able to find neither of these two great plugins on the VS Extensions Gallery: Structure Adornment, AllMargins Any ideas where did they go? Are there any replacements I can use? In the worst case, is it…
Moon
  • 33,439
  • 20
  • 81
  • 132
10
votes
1 answer

How can I create an SSMS extension that opens from the execution plan window?

I would like to create an SQL Server Management Studio v18 extension that opens from the execution plan window. I believe that this is technically possible because there is a third party tool that already does this: So far, I've been able to create…
Joe Obbish
  • 127
  • 4
10
votes
3 answers

How to install ankhsvn into Visual Studio 2022?

Refer to Installation of AnkhSVN Visual Studio 2019, although it can be successfully installed, it still cannot be used in visual studio 2022 ActivityLog.xml: CreateInstance failed for package [AnkhSVN - Subversion Support for Visual Studio]Source:…
jason
  • 101
  • 1
  • 1
  • 4
10
votes
1 answer

In my VS extension, how can I programmatically preview a file in Visual Studio 2015/2017?

In my Visual Studio extension I display related files. I have code that can open a file in Visual Studio. I want code that can preview a file This is the code I use to open a file using the DTE2 object. But how can I preview the file? public void…
Martin Lottering
  • 1,624
  • 19
  • 31
10
votes
3 answers

Stop intellisense session from closing prematurely

I've created a Visual Studio extension that provides intellisense for my domain specific language by inheriting from Microsoft.VisualStudio.Language.Intellisense.ICompletionSource. This works ok, except that a valid character in the keywords of my…
Scott Langham
  • 58,735
  • 39
  • 131
  • 204
10
votes
1 answer

C # EnvDTE Moving projects from the Solution to SolutionFolder

It is necessary to move the project from the Solution to SolutionFolder. I am trying to remove the project from the solution and add it back into the folder using EnvDTE SolutionFolder.AddFromFile(Filepath line); because not found in the…
V. Dmitriy
  • 205
  • 1
  • 10
10
votes
1 answer

Roslyn add new method to an existing class

I'm investigating the use of the Roslyn compiler within a Visual Studio Extension (VSIX) that uses the VisualStudioWorkspace to update existing code. Having spent the last few days reading up on this, there seem to be several ways to achieve…
DrGriff
  • 4,394
  • 9
  • 43
  • 92
10
votes
1 answer

VSIX - Deadlock on XmlEditingScope.Complete()

We are using the classes in the Microsoft.VisualStudio.XmlEditor namespace (https://msdn.microsoft.com/en-us/library/microsoft.visualstudio.xmleditor.aspx) to modify an xml document in an Visual Studio Extension. For some reason a deadlock occurs…
TWT
  • 2,511
  • 1
  • 23
  • 37
10
votes
1 answer

How to package a .NET library that targets the Universal Windows Platform and depends on Visual Studio extension SDKs?

How do I package a Universal Windows Platform library that depends on Visual Studio extension SDKs such as the Microsoft Player Framework? Specifically, I want users of my library to be able to use it immediately after pressing the Install button in…
Sander
  • 25,685
  • 3
  • 53
  • 85
10
votes
2 answers

Visual Studio extension does not load in experimental instance

I'm developing a Visual Studio extension in VS2013 but I can get it to load in the experimental instance. I can install it manually in my current instance (from the vsix file) and it works fine but I am unable to debug it. There are no error…
adrianm
  • 14,468
  • 5
  • 55
  • 102
10
votes
1 answer

Develop VSIX for VS2010 under VS2012?

Is there a way to develop a VSIX extension under Visual Studio 2012, which then could be installed in Visual Studio 2010? I've tried to set version range for Microsoft.VisualStudio.Pro target to [10.0,11.0], but when I launch a compiled VSIX, it…
10
votes
3 answers

How to get list of Visual Studio commands?

We are working on an VS extension that requires a list of Visual Studio commands like the one in this screen shot: Example: Action.Add Action.Add.NETFrameworkLaunchCondition Action.AddAction ... etc. Where can we find or how can we access this…
Byron Sommardahl
  • 12,743
  • 15
  • 74
  • 131
9
votes
2 answers

classes and methods report

Is there any tool or extension to generate a report which contains data about classes and methods? For example, show a summary of all classes and the methods included in each class with the count of both.
9
votes
4 answers

VS2017, VSIX: just created AsyncPackage is not being instanced

This is default VSPackage. I added only ProvideAutoLoad attributes. using System; using System.ComponentModel.Design; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Globalization; using…
Denis535
  • 3,407
  • 4
  • 25
  • 36