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
52
votes
2 answers

where are custom extensions installed in visual studio?

Where are custom extensions installed in Visual Studio? I know you could get path though ExtensionManager.GetInstalledExtensions(), however it seems none of the paths found corresponds to my extension.
Yituo
  • 1,458
  • 4
  • 17
  • 26
35
votes
2 answers

How to add a button to Visual Studio Intellisense

I would like to add a button to the top of the list of options returned by Visual Studio's IntelliSense. When the button is clicked, my custom code will be executed (which will, among other things, cause a popup to appear). I call it 'button'…
James
  • 2,570
  • 7
  • 34
  • 57
30
votes
3 answers

How do you get the current solution directory from a VSPackage?

Following is how you would get the current solution directory from an add-in: _applicationObject = (DTE2)application; // retrieved from OnConnection method string solutionDir =…
Dave Clemmer
  • 3,741
  • 12
  • 49
  • 72
29
votes
2 answers

Accessing attribute info from DTE

I have coded something like the following: [Attrib(typeof(MyCustomType))] public class TargetType { // ..... } I want to use EnvDTE to get a reference to the CodeElement referenced by the typeof. I know how to get a reference to the attribute…
Levi Drain
  • 445
  • 3
  • 10
21
votes
2 answers

Programmatically getting the current Visual Studio IDE solution directory from addins

I have some tools that perform updates on .NET solutions, but they need to know the directory where the solution is located. I added these tools as External Tools, where they appear in the IDE Tools menu, and supplying $(SolutionDir) as an argument.…
Dave Clemmer
  • 3,741
  • 12
  • 49
  • 72
16
votes
6 answers

Detect the Visual Studio version inside a VSPackage

How can I check/detect which Visual Studio version is running under my VSPackage? I cannot get from the registry because the computer could have several versions installed, so I guess there is an API that is able to get it. Anybody knows how to get…
Daniel Peñalba
  • 30,507
  • 32
  • 137
  • 219
15
votes
1 answer

Can I create a new folder with a Visual Studio Item Template

I have successfully created (and manually edited) an Item Template that will add a number of files in one 'shot'. I want these files to all be created under a folder that should be created at the same time. In Project Template .vstemplate files I…
Chris Arnold
  • 5,753
  • 5
  • 35
  • 55
12
votes
4 answers

How can I match Visual Studio's theme when creating a VSIX tool window?

I am creating an extension for Visual Studio (2012+) that involves a tool window. I was hoping to style the window identically to match the current theme of Visual Studio. However, I am having a great deal of trouble figuring out how to do it. This…
11
votes
1 answer

Finding a ProjectItem by type name via DTE

Given a type name, is it possible to use DTE to find the ProjectItem that the type is located in? Something similar to how the Navigate To... dialog works in Visual Studio 2010. The closest I could find is Solution.FindProjectItem, but that takes in…
Igal Tabachnik
  • 31,174
  • 15
  • 92
  • 157
11
votes
2 answers

VSIX package build failed without showing the reason (Visual Studio bug)

I have to enabled diagnostic mode of MSBuild project build output verbosity to see this: 1>Done executing task "EnableExtension" -- FAILED. (TaskId:81) 1>Done building target "DeployVsixExtensionFiles" in project "myextension.csproj" -- FAILED.:…
jwaliszko
  • 16,942
  • 22
  • 92
  • 158
10
votes
2 answers

Visual Studio Extend IDE - the Exception Assistant

The aim here is to incorporate StackOverflow popular answers into Visual Studio's Exception Assistant. I have trawled the web without luck, the only information I could find about customizing the Exception Assistant is this link below that shows…
Jeremy Thompson
  • 61,933
  • 36
  • 195
  • 321
10
votes
2 answers

DTE2 events don't fire

While trying to develop my first VS Addin, I am having issues in firing DTE2 events. Basically, the DocumentOpened and LineChanged events don't fire for some reason. What important part did I miss? namespace TestAddin { public class Connect :…
10
votes
3 answers

Idea for extending C# syntax

C# unfortunately does not allow for extra user-defined syntax. But I was wondering whether it was possible to surpass this limitation by tapping into the visual studio onbuild-event. Suppose I have some syntactic sugar which could be easily…
JBSnorro
  • 6,048
  • 3
  • 41
  • 62
10
votes
1 answer

Visual Debugger for Geometric Objects

When working on my library representing geometric objects, Debugging currently looks like this: Here I am viewing the local variables in the Autos, Locals, Watch and Immediate windows. As I have trouble imagining the shape of the object in my mind,…
9
votes
1 answer

VSX: How can I reuse the existing XML editor to handle binary files converted to XML?

I'm trying to create an extension VSPackage for VS2017 (in C#) which would convert binary data to XML, opens that in the default VS XML editor and XML language service, and then converts it back to binary upon saving. However, I have troubles to…
Ray
  • 7,940
  • 7
  • 58
  • 90
1
2 3
29 30