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
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
9
votes
1 answer

IsMouseOver returns false over some elements in a DockPanel

I'm trying to detect when mouse enters VS 2017 title bar, but I've noticed that MouseEnter and MouseLeave events don't work correctly. Event fires only when mouse enters child controls outlined by green rectangle on the screenshot below. The title…
Poma
  • 8,174
  • 18
  • 82
  • 144
9
votes
6 answers

Visual Studio 2017 is not detected by extensions for installation

I'm trying to install an extension that's only supported on Visual Studio 2017. I'm using Professional, and I never had the RC installed, only the RTM version. VS 2017 isn't detected, however (see install log below). Other extensions install just…
vaindil
  • 7,536
  • 21
  • 68
  • 127
9
votes
1 answer

Visual Studio MEF Extension - Force Margin Glyphs To Be Updated or Redraw

The extension I am writing started life from the Walkthrough: Creating a Margin Glyph example provided by Microsoft: https://msdn.microsoft.com/en-us/library/ee361745.aspx Everything works fine, except I am trying to trigger the redrawing or…
sthede
  • 914
  • 1
  • 8
  • 27
9
votes
2 answers

In a Visual Studio Extension, how to detect when the debugger Continues

I need my Visual Studio extension to react to debugging events. I've registered a IDebugEventCallback2 and I'm receiving events, but all I get for each event is an opaque IDebugEvent2 and a Guid, many of which are not only undocumented but don't…
9
votes
1 answer

Copy Layouts-o-Rama configuration from VS2012 to VS2013

How do I copy my Layouts-o-Rama configuration to VS2013 now that I have upgraded? Layouts-o-Rama is a brilliant Visual Studio extension when you find yourself using VS in different locations with different monitor setups. Just save a layout for…
Jason Glover
  • 618
  • 5
  • 13
9
votes
3 answers

How to get current used color theme of Visual Studio

I'm creating my own IntelliSense Presenter, since Visual Studio2012 support change theme, so I want my background color of the presenter can be auto-changed when the theme been changed. Is there a way to track the theme changes event, or get the…
Allen4Tech
  • 2,094
  • 3
  • 26
  • 66
9
votes
1 answer

Setting cursor position with Visual Studio Extension

I'm writing my own Visual Studio 2010 Extension that should help me navigating a rather large solution. I already have a dialog based VS Extension that shows me a class name and a function name depending on some search criteria. I now can click this…
9
votes
1 answer

Generate Code from a Visual Studio Extension

I have a project that generates text (representing an interface and a class) based on metadata. I would like to take this generated code and insert it as a new class and interface directly into the currently opened solution under a specific project…
8
votes
2 answers

Error VSSDK1311 about ProductArchitecture when building extension for VS2022

I'm building a VSIX project and seeing this error message: VSSDK1311 The vsixmanifest must contain a value for 'PackageManifest:Installation:InstallTarget:ProductArchitecture'. What do I need to do to fix this?
Drew Noakes
  • 300,895
  • 165
  • 679
  • 742
8
votes
3 answers

Visual Studio 2010 extension that does code expansion

I want to build a Visual Studio 2010 VSIX extension that expands some text based on a call to a method (using the Zen Coding selector-based syntax). Ideally, a user would type a string of text, hit a hotkey, and the string of text would be…
Jon Galloway
  • 52,327
  • 25
  • 125
  • 193
8
votes
1 answer

Enlarge find all references font size in Visual Studio 2017?

So MS added the new style for "find all references", but now I cannot find how to change the font size of the "Code" column! I want it bigger, but when I change the Environment font it only affects the other columns (File, Project, etc.). Is there…
8
votes
1 answer

Get Roslyn SyntaxToken from Visual Studio Text Selection (caret position)

I am attempting to bridge between the VSSDK and Roslyn SDK in a Visual Studio extension package and have been having a hard time with this. The ActivePoint.AbsoluteCharOffset given from Visual Studio does not match the element I get from Roslyn when…
8
votes
1 answer

Visual Studio Protocol Handler - Open File

Does Visual Studio have a Protocol Handler that includes a command to open a specific file? They have one for Git clone, as described in Announcing the GitHub Extension for Visual Studio: The Open in Visual Studio button [in GitHub] calls a new…
8
votes
1 answer

Disable all css minification with Web Compiler (Visual Studio extension)

My less files compiles to css on each save, but how do I disable minification for all css files i the project in a simple way? I can see in the docs that it's possible to give each file its own settings. But that's a total pain to configure, since I…