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
0
votes
1 answer
DynamicEnumProperty provider class that implements IDynamicEnumValuesProvider not being loaded by Visual Studio 2013
Hello I have a managed package that provides the code for a custom C++ build toolchain. I have a custom platform Toolset.targets that loads some custom properties:

Corillian
- 907
- 7
- 12
0
votes
1 answer
Automate the renaming of classes in Visual Studio 2013 using the SDK and VS API
How do I rename classes with an API call, from within a Visual Studio 2013 plugin we are building?
We are already adding files and generating code to a project from within the plugin, but how to can we open the rename refactoring dialogue?
The…

user989489
- 93
- 5
0
votes
1 answer
Visual Studios C# switching between grid controls
I have begun windows programming and have just completed a functional calculator. I would like to take this calculator further by adding a "Fnc" or "function" button to the user controls which would allow you to view a new set of buttons, but still…

Connor
- 45
- 8
0
votes
1 answer
IVsEditorAdaptersFactoryService.CreateVsTextViewAdapter throws an object null reference
I'm trying to create a IVsTextViewAdpater with the IVsEditorAdaptersFactoryService but when I call CreateVsTextViewAdapter it throws an object null reference:
var editorFactory =…

Adam Driscoll
- 9,395
- 9
- 61
- 104
0
votes
0 answers
Visual Studio DSL interaction with my classes
I'm getting start with DSL, I have build my DSL and I have a T4 template for generate code from a design.
I can create a new element in my project of my DSL type, I can create my design and then I have to run my T4 to generate code.
But, I can see…

Javier Ros
- 3,511
- 2
- 21
- 41
0
votes
1 answer
Accessing all the methods and classes for VS Extension with Adornment
I am developing an extension for visual studio with adornment.
I have to put label above every class and methods in active document.
Now my problem is how can I get all the methods and classes? I searched for it but none of them shows the exact…

Kuntal Mehta
- 13
- 1
- 4
0
votes
1 answer
Visual Studios 2013 indenting code
It's not necessary I fix this 'issue' since it's a more aesthetic thing. I was just wondering if it's possible to indent code that comes under the "public:" deceleration after indenting the deceleration itself.
So it would look like this:
class…

William
- 51
- 6
0
votes
1 answer
How to fix "Project Unavailable" error in DTE
I have a Visual Studio Template Wizard where eventually I need to conditionally (based in user selections) change the .NET target with:
// project is of type EnvDTE.Project
project.Properties.Item("TargetFrameworkMoniker").Value…

Fernando Gonzalez Sanchez
- 3,315
- 4
- 32
- 45
0
votes
0 answers
How do I get the VsDropdownBarClass instance for the current window?
I'm using MEF to write a Visual Studio extension using Visual Studio 2012 Pro. I would like to access the Microsoft.VisualStudio.TextManager.Interop.VsDropdownBarClass instance for the current window's dropdown bar.
Is this possible with Visual…

C. Dragon 76
- 9,882
- 9
- 34
- 41
0
votes
1 answer
How to avoid In DTE, when setting ProjectItem.Name Visual Studio asks confirmation
I have some code that sets the "Name" property to change the extension to some file
ProjectItem pi = //...
/* snip */
pi.Name = "file.with_new_extension";
As soon as the assignation happens, the code pauses, because in the UI Visual Studio is…

Fernando Gonzalez Sanchez
- 3,315
- 4
- 32
- 45
0
votes
1 answer
How to get a list of available TeamProjects through EnvDTE?
I was able to list the workspaces but i didn't find code examples on how to have information about the Source Control Team Projects.
I've looked through MSDN Documentation here but didn't succeed to get a List of Team Projects.

csharpwinphonexaml
- 3,659
- 10
- 32
- 63
0
votes
2 answers
Implement "Navigation bar" for custom editor
When registering a custom language service extension, Visual Studio creates a new options entry for the language within the Text Editor node (in the Visual Studio options dialog). Beneath that node two default nodes are created named General and…

Matze
- 5,100
- 6
- 46
- 69
0
votes
1 answer
Changing a buttons icon in with the visual studio SDK
I am using the Visual Studio SDK to add in some additional functionality to visual studio.
I have a button that when pressed will perform a potentially long running task (maybe 10-15 seconds) and I would like to change the button Icon to include…

James Considine
- 323
- 2
- 13
0
votes
1 answer
How can "Save All" button press be handled in Visual Studio Extensibility?
I need to have some action performed when "Save All" button is pressed. If I subscribe to DocumentSaved event that event is invoked once for each unsaved document and this is kind of a problem because I'd rather have the action invoked for the…

sharptooth
- 167,383
- 100
- 513
- 979
0
votes
1 answer
The significance of [ContentType("HTML")] in the Visual Studio SDK
I am looking at the Roslyn September 2012 CTP with Reflector, and I noticed the…

cubetwo1729
- 1,438
- 1
- 11
- 18