visual-studio-extensions

Visual Studio SDK - Handling File Add, Remove, and Rename Events

拟墨画扇 提交于 2019-11-29 21:35:26
问题 I'm working on a Visual Studio extension that should listen for events when the user adds, removes, or renames files in the current solution. The answer to this question notes that VS provides infrastructure for listening to document events like saving, opening and closing through the DocumentEvents interface. For example: Dte.Events.DocumentEvents.DocumentSaved Are there similar events that would allow me to listen to the user adding/removing/renaming documents? 回答1: First, don't use DTE if

How to uninstall the “Microsoft Advertising SDK” Visual Studio extension?

♀尐吖头ヾ 提交于 2019-11-29 18:35:46
One of the extensions listed in Visual Studio (2012 for me) is the "Microsoft Advertising SDK for Windows 8.1". I like to uninstall extensions I don't need, but this one won't allow me. if I hover the (enabled!) button it says in a tooltip: This product cannot be uninstalled via extensions and updates It looks like this: On second inspection I see a similar (more helpful) message bottom right: You need to use the Programs and Features pane in the Windows Control Panel to remove this extension. Easy enough, no? But it's not there! Or: In addition to the instructions on screen I also searched.

Visual Studio 2010 extension for Go To Interface Implementation? [duplicate]

 ̄綄美尐妖づ 提交于 2019-11-29 16:20:49
问题 This question already has answers here : Closed 6 years ago . Possible Duplicate: How do you quickly find the implementation(s) of an interface’s method? I like ReSharper's Go To Implementation feature but I often keep ReSharper disabled. Is there an equivalent extension for Visual Studio 2010? 回答1: I'm looking for the extension for this little "go to implementation" too. But unfortunately I couldn't find any. May be we will have to wait next version of visual studio or enable ReSharper back

Roslyn Code Action: How to check if preview or real execution?

前提是你 提交于 2019-11-29 16:18:15
I am currently experimenting with Roslyn and Code Actions, more specific Code Refactorings. It feels kind of easy, but I have a difficulty I cannot solve. Code actions are executed once against a dummy workspace as a "preview" option, so that you can see the actual changes before you click the action and execute it against the real workspace. Now I am dealing with some things Roslyn can't really do (yet), so I am doing some changes via EnvDTE . I know, it's bad, but I couldn't find another way. So the issue here is: When I hover over my code action, the code gets executed as preview, and it

Uninstall Visual F#

半世苍凉 提交于 2019-11-29 05:40:23
I use Visual Studio 2013, and it have a pretty feature to notify and install all extension updates. So, this is very good, but I receive sometimes the request to install the updates for the features I never use. By example, it proposes me to install the update for the Visual F# 3.1 Is there a way to completely remove this F#? I tried to uninstall from the extensions manager, it sends me to the "Add & Remove Programs", but there is any program containing "F#". How to proceed? You can uninstall it with the following command from an PowerShell prompt that has admin rights: gwmi Win32_Product

Append item to Add menu of solution- or project node in Solution Explorer

牧云@^-^@ 提交于 2019-11-29 05:17:56
How can I add a sub menu for the Add menu item when right click on a visual studio solution explorer? I have to add a single sub menu item which will be displayed n right clicking the visual studio solution and move to the Add option in that menu. I am trying using .vsct (vs package). Please help me with valuable suggestions Matze Of course, there are similiar questions, but this seems to be a special case... In general, you need to know the menu´s command- and package id that you want to extend. I usually do this by enabling the EnableVSIPLogging option in the registry as described by this

How to get current used color theme of Visual Studio

自作多情 提交于 2019-11-29 04:21:46
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 current color theme of the Visual Studio? Yes, this is possible. I had to solve a similiar issue with one of my extensions... The current theme is stored in the Windows Registry; so I implemented the following utility class. public enum VsTheme { Unknown = 0, Light, Dark, Blue } public class ThemeUtil { private static readonly IDictionary<string,

Visual Studio intercepting F1 help command

喜欢而已 提交于 2019-11-29 04:11:39
Im looking to write a visual studio addin that can intercept the default online help command and grab the MSDN library URL when F1 help is called on a class or type. For example say I place my cursor on the keyword string and press F1 it usually automatically opens the browser and navigates to the help documentation for the string reference type. I want to grab the URL passed to the browser before it reaches the browser. Is it possible to write a visual studio addin/extension that can intercept the default F1 help command ?? If the above can be done any pointers as to where to start? About 10

What are the little coloured bits on my vertical scroll bar in Visual Studio 2010?

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-29 02:59:55
I have only recently paid any attention to the appearance of little green and blue rectangles on my vertical scroll bar in code editing windows in VS2010. Can anyone tell me what these are? I'm running with the Productivity Power Tools extension and ReSharper 6. From the productivity power tools extension page : Enhanced Scrollbar We’ve been looking into ways that we can improve the experience of navigating through code files. Our solution is the source map which has three modes that will allow you to more easily see the interesting artifacts in your files (edits, breakpoints, bookmarks,

How to uninstall the “Microsoft Advertising SDK” Visual Studio extension?

那年仲夏 提交于 2019-11-28 13:13:29
问题 One of the extensions listed in Visual Studio (2012 for me) is the "Microsoft Advertising SDK for Windows 8.1". I like to uninstall extensions I don't need, but this one won't allow me. if I hover the (enabled!) button it says in a tooltip: This product cannot be uninstalled via extensions and updates It looks like this: On second inspection I see a similar (more helpful) message bottom right: You need to use the Programs and Features pane in the Windows Control Panel to remove this extension