Questions tagged [vsx]

Visual Studio eXtensibility (VSX) is the ability to develop extensions to the Visual Studio IDE from Microsoft. Extensions are developed using the VSSDK.

Links:

Most of the information on add-ins is in the SDK.

351 questions
5
votes
5 answers

Visual Studio Extensibility: Adding existing folders to a project

I'm trying to use Visual Studio 2008's extensibility to write an addin that will create a project folder with various messages in it after parsing an interface. I'm having trouble at the step of creating/adding the folder, however. I've tried using…
Andrew
  • 342
  • 3
  • 12
5
votes
2 answers

Any way to make Intellisense work, when opening a cs file that's not part of the project?

What we ideally need is, to know how Microsoft handles XAML generated code (Those *.g.cs files). If you goto a XAML code behind, intellisense will work even if the *.g.cs file is not part of the project!! Context: In a custom VS package, we need…
amazedsaint
  • 7,642
  • 7
  • 54
  • 83
5
votes
2 answers

How to debug VSIX extension in VS which is of other version then version of VS SDK being used

I have a solution with my Visual Studio extension. This extension should work in any VS version since VS2010. That's because I use VS 2010 SDK. I made hacks to bind my projects to VS2010 SDK assemblies and targets to work without SDK installed -…
Shrike
  • 9,218
  • 7
  • 68
  • 105
5
votes
2 answers

Visual Studio Extension: Get the path of the current selected file in the Solution Explorer

I'm trying to create my first extension for visual studio and so far I've been following this tutorial to get me started (http://www.diaryofaninja.com/blog/2014/02/18/who-said-building-visual-studio-extensions-was-hard). Now I have a custom menu…
Eux
  • 482
  • 7
  • 16
5
votes
3 answers

How do you develop Visual Studio Add-Ins?

I have a vague idea Visual Studio allows you to run a second sandboxed instance where the add-in is being in fact loaded. That'd allow you to debug your add-in code and such. Is this effectively possible? How would I go about doing that? I'm…
devoured elysium
  • 101,373
  • 131
  • 340
  • 557
5
votes
1 answer

Using vsx how do you create a sub menu with commands?

I have created the following vsct file xml.
David Basarab
  • 72,212
  • 42
  • 129
  • 156
5
votes
2 answers

Extending visual studio

I want to write an AddIn for visual studio (2010). My goal is to add a menuitem to the context menu of all .cs files in the solution explorer. Or maybe just to context menu of the code window, although I prefer the first thing. I've been browsing…
Klaus Byskov Pedersen
  • 117,245
  • 29
  • 183
  • 222
5
votes
2 answers

How can I get a reference to an output stream that writes to the Visual Studio "output" window?

I have a third-party .NET library that enables output of some key diagnostic information to a TextWriter instance. I'd like to have this information dumped to the output window of Visual Studio 2008 while in debug mode and ignored if not in debug…
Chris Farmer
  • 24,974
  • 34
  • 121
  • 164
5
votes
2 answers

How does the Visual Studio debugger decide which values can be viewed with the Text/XML/HTML Visualizer?

I noticed that when I view variables of certain types, such as XElement, in the Watch window in Visual Studio, if I click on the Debug Visualizers magnifying glass, the same visualizers that apply on strings (Text, XML, HTML) appear. I haven't seen…
Omer Raviv
  • 11,409
  • 5
  • 43
  • 82
5
votes
3 answers

VS 2010 mouse processor extension - not working

I am experimenting with a Visual Studio 2010 extension, where I need to work with the events exposed by IMouseProcessor. As far as I can tell from the docs, I should create an IMouseProcessorProvider and export is using MEF, so that it can be…
driis
  • 161,458
  • 45
  • 265
  • 341
5
votes
2 answers

How to define a SplitDropDown or MenuButton for a toolbar in a *.vsct file?

I defined a toolbar for a tool window by following this walk-through description. Adding new buttons to the toolbar, and connecting them to code within my package, is no problem and works fine (So I am not looking for information on how to add…
Matze
  • 5,100
  • 6
  • 46
  • 69
5
votes
0 answers

How can I force an IWpfTextView to refresh/invalidate it's layout?

I'm currently writing an extension that provides a custom TextFormattingParagraphProperties (via ITextParagraphPropertiesFactoryService). This seems to work fine except for when I want to update the formatting of lines due to changes elsewhere in…
Grant Peters
  • 7,691
  • 3
  • 45
  • 57
5
votes
3 answers

How do I programmatically add a file to a Solution?

I am developing a VS Package and part of the functionality that I need to implement is to add a file to the Solution Items of the currently open Solution. This is exactly the same action that would be performed manually if you right-click on a…
Martyn
  • 1,446
  • 2
  • 19
  • 30
5
votes
5 answers

Can you process T4 templates from inside a .NET application?

Can you process T4 templates from inside a .NET application? Is that code available to be called? included in a project? licensing? update: so it does look like you would have to use VS in some way.
BuddyJoe
  • 69,735
  • 114
  • 291
  • 466
5
votes
3 answers

Should a new Visual Studio-Based Application be based on 2008 or 2010?

I am thinking of creating a product based on the Visual Studio Shell (primarily isolated mode). Since Visual Studio 2010 will most likely be RTM before my product, does it make sense to start with VS2010 as a base rather than VS2008? Has anyone…
Nathan Voxland
  • 15,453
  • 2
  • 48
  • 64