visual-studio-extensions

How to make ReSharper re-evaluate its assembly reference highlighting

梦想与她 提交于 2019-12-17 14:59:31
问题 I am creating a Prism Project Template, and the template works great. But after I create a project with the template some of the files look like this: Despite appearances, everything is just fine. If I do a Rebuild All I see that the solution builds with no errors: But the rebuild all does not get rid of the "errors" that are showing in the editor window. (Note that the actual error window does not show any errors.) I can clean, rebuild, close and open files, and it will not fix the

Custom Intellisense Extension

主宰稳场 提交于 2019-12-17 05:50:41
问题 I am wanting to write an addition to intellisense in Visual Studio. Is it possible to extend at all, from my research I haven't found any samples or documentation on intellisense extensions. How can I get intellisense to show a simple HelloWorld message like the following (where hello world is added at run time to the intellisense for String): 回答1: So in Visual Studio 2010 and later, the extensibility APIs you want to at are under the Microsoft.VisualStudio.Languages.IntelliSense namespace.

Visual Studio Extensibility (VSX) - Get the current branch name

我的未来我决定 提交于 2019-12-14 02:31:07
问题 I am developing a Visual Studio extension (VS Package). I am trying to get the Source Control branch name for a project/solution. The only source control service available in the VS SDK is SVsSccManager but that doesn't provide any means of retrieving the source control branch name. Also looked at DTE.SourceControl but alas, it doesn't give branch info. I really don't want to develop my own Source Control plug-in to simply retrieve the branch name (this feels like total overkill). Is there

Javascript Structural Highlighting for Visual Studio?

耗尽温柔 提交于 2019-12-13 16:28:45
问题 I'm using 'StructureAdornment' extension for visual studio which creates a line for matching barces. It works good but it only works for C# files. I was wondering if there was any extension which does the same job for javascript files. 回答1: you can try these extension JScript Editor Extensions. http://visualstudiogallery.msdn.microsoft.com/872d27ee-38c7-4a97-98dc-0d8a431cc2ed/ you can customize your shortcut. 回答2: Indent Guides for Visual Studio Personally tried and tested on Visual Studio

Finding Performance Spikes on Visual Studio

你。 提交于 2019-12-13 14:38:19
问题 Is it somehow possible to measure the CPU and/or IO requirements for all installed Visual Studio Addins / Extensions (VS 2012 / 2013)? Concrete Problem: I have quite a lot of Extensions and Addins for Visual Studio 2013 installed and in general it runs smooth, just sometimes i experience ~5-10 sec spikes where VS just freezes. (Without any Addins or Extensions it doesn't happen). Any idea how to find the problem? 回答1: If it reproduces often enough, you can just attach a debugger to Visual

Is there a Visual Studio extension that adds Find window like in WebStorm?

*爱你&永不变心* 提交于 2019-12-13 07:37:47
问题 There is a nice find window in WebStorm. Is there a way to add such window to Visual Studio? Current Find Results window in VS looks really outdated. 回答1: Entrian Source Search extension provides syntax high­lighted search results and multiple advanced search options: 回答2: For symbol search you can use Find All References (Shift+F12): 来源: https://stackoverflow.com/questions/44838632/is-there-a-visual-studio-extension-that-adds-find-window-like-in-webstorm

Accessing all the methods and classes for VS Extension with Adornment

强颜欢笑 提交于 2019-12-13 06:56:33
问题 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 solution. Thanks in advance! 回答1: if(this._dte!=null && this._dte.ActiveDocument!=null) { List<CodeClass> foundClasses = new List<CodeClass>(); List<CodeFunction> foundMethod = new List<CodeFunction>(); CodeElements elementsInDocument = this._dte

WindowState change event in Visual Studio extension

谁说我不能喝 提交于 2019-12-13 06:19:03
问题 I am looking for an event that will notify me when the main window is minimized and restored in a Visual Studio extension package. I've looked at the DTE2.Events, as well as the IVsWindowFrame and IVsWindowFrameNotify interfaces but don't see anything that will do what I need. 回答1: Get the HWND of the VS window: HWnd of Visual Studio 2010 Capture the messages being sent to Visual Studio: C# - Capturing Windows Messages from a specific application Then wait for a WM_SIZE message: http://msdn

Is there a way to check if the active window has IntelliSense popup open?

牧云@^-^@ 提交于 2019-12-13 04:39:00
问题 Is there a way to check if the currently active window has IntelliSense popup open in a Visual Studio Extension? I want to abort the TextChanged event handler execution if IntelliSense is open. 回答1: You can call Microsoft.VisualStudio.Language.Intellisense.ICompletionBroker.IsCompletionActive(textView); 来源: https://stackoverflow.com/questions/57000759/is-there-a-way-to-check-if-the-active-window-has-intellisense-popup-open

Is it possible to write VS extensions using the SDK style projects?

时间秒杀一切 提交于 2019-12-13 04:34:50
问题 VS by default creates a legacy style project. I started manual migration, but then it fails to recognize the COM interop references for EnvDTE... Is it possible at all? 回答1: Is it possible at all? It's possible as I know. For now, there's no any official document or blog which describes the steps about how to migrate a vsix project from old csproj format to new sdk-format ,but at least it's a possible thing. We may need some msbuild hacks to make it possible, here's one great open-source