The Visual Studio SDK includes documentation, samples, and code to help you develop products that integrate with the Visual Studio product family.
Questions tagged [visual-studio-sdk]
290 questions
4
votes
1 answer
Overlapping alternatives for developing language support in Visual Studio
I want to develop support in Visual Studio for a particular language. MPF language services and MEF editor extensions seem to have an awful lot of overlap, and I have not been able to get a clear answer on which one I should be using.
I am only…

Kelsie
- 1,000
- 1
- 9
- 21
4
votes
0 answers
How to get call relations of an open solution by using a plugin
I try to develop a VSPackage for VS 2010 that investigates all the available methods in the current solution and to reconstruct the call relations of each single method just like the built in Call Hierarchy feature of VS does.
I managed to get all…

Biocoder
- 151
- 1
- 6
4
votes
1 answer
Get default project directory in Visual Studio 2010 extension
How do I get the default project creation directory from within a Visual Studio 2010 extension? By default this directory is:
C:\Users\\Documents\Visual Studio 2010\Projects
I'm guessing this is done via the Tools->Options window, but I…

Matt Ruwe
- 3,386
- 6
- 39
- 77
3
votes
1 answer
How do I get the projects to build in the active Visual Studio configuration?
I am working on a small Visual Studio extension that acts on projects in a solution based on if they are set to build in the active build configuration or not. The problem I am having is that I cannot figure out how to determine what those projects…

Steve Czetty
- 6,147
- 9
- 39
- 48
3
votes
2 answers
MVC 3 showing user specific data
I am trying to create a web site app using MVC 3- The problem is I want to setup a website where a user signs in they see data only specific to them. For example when you log into facebook, you only see your "wall" and not other peoples.
Can…

Aziz
- 1,584
- 4
- 23
- 43
3
votes
2 answers
How to modify Visual Studio context menu of project file and add a command to it
I have created new type of project for Visual Studio 2010 (By dint of Visual Studio SDK) and this project consists of *.pat files.
*.cpp files have in theirs context menu option "compile".
I want to add such option into context menu of my type of…

katagaeshi
- 43
- 1
- 5
3
votes
2 answers
VS2010 SDK - Adding Display Items to the Fonts and Colors options dialog
I'm trying to add custom Display Items to the Fonts and Colors dialog. I can successfully save and retrieve colors using the IVsFontAndColorStorage service but the items do not appear in the list of Display Items. I have tried following this blog…

Adam Driscoll
- 9,395
- 9
- 61
- 104
3
votes
1 answer
Does the Visual Studio SDK provide a way to determine the pin status of an open document?
I know of the existence of the Running Document Table and how to access it using the Visual Studio SDK, but I can't seem to find a way to determine UX-specific attributes about the file, like if it's pinned in the editor.

Katherine Mitchell
- 33
- 3
3
votes
1 answer
TFS Client APIs for creating workitem templates?
Of course, it is pretty possible to create work items, get a list of work items etc in TFS.
In addition to this, we need to have the functionality of allowing our users to create their own work item templates, for various file types.
Whether the TFS…

amazedsaint
- 7,642
- 7
- 54
- 83
3
votes
2 answers
How to check that the tool window in my VS 2017 extension for is hidden
I'm developing an extension for Visual Studio 2017 which contains custom "toolwindow". This "toolwindow" contains WPF control with a view model subscribed to the Workspace.WorkspaceChanged and EnvDTE.DTE.Events.WindowEvents.WindowActivated events.
I…

SENya
- 1,083
- 11
- 26
3
votes
0 answers
How can I detect "Edit and Continue" moment within my application?
I'm developing .NET application that draws some information on the screen. During the development it is very convenient to use Visual Studio's "Edit and Continue" feature, to make slight changes in code and have it immediately reflected on the…

Titan
- 2,875
- 5
- 23
- 34
3
votes
0 answers
How to specify which margin a glyph renders to?
The code snippets from https://learn.microsoft.com/en-us/visualstudio/extensibility/walkthrough-creating-a-margin-glyph?view=vs-2017 walk you through creating a margin glyph, implementing TaggerProvider / ITagger and a GlyphFactoryProvider /…

brianc
- 1,547
- 3
- 16
- 30
3
votes
0 answers
Locating all comments within a code file using the Visual Studio 2017 SDK
Specifically, I want to obtain a list/collection of all the code comment lines for use in a small extension to intellisense to handle certain varieties of markup done through comments in C# and C++.
I strongly suspect Visual Studio already…

Christopher Griffith
- 209
- 1
- 7
3
votes
1 answer
Programmatically adding and editing the Targets in a Visual Studio Project File
I am trying to programmatically add the following Target to my Visual Studio Project File.

Daniel McQuiston
- 2,056
- 2
- 15
- 15
3
votes
3 answers
How to remove duplicated assemblies from the Visual Studio Choose Toolbox Items dialog?
I have duplicated assemblies in the .NET Framework Components tab of a Choose Toolbox Items menu item:
The full code for assembly loading can be found here, but the main idea is following:
Probe assembly in user docs
Probe assembly in VS…

MikhailTymchukDX
- 702
- 4
- 9