visual-studio-extensions

Project Names in Visual Studio Solution sometimes are empty

我与影子孤独终老i 提交于 2019-11-28 11:48:38
In visual studio extension I would like to get all projects and their names: var service = (DTE) Package.GetGlobalService(typeof (SDTE)); var projects = service.Solution.Projects; foreach (Project project in projects) //.... This approach work nice and neat for exception of one little problem: project variable returns really exact number of project. But project's full name might be EMPTY if it located in the solution's folder. (I mean the structure of solution when projects are united in the solution's folder) How to get these project properly? alerya Here is a solution. This guy is the Lord

Is there a keyboard shortcut to move the cursor between methods in Visual Studio 2010?

我是研究僧i 提交于 2019-11-28 08:52:39
Is there any keyboard shortcut to move the cursor between methods in Visual Studio? Is there any plugins that can do the same job? All the time when I program, I want to go at the end of the current method and if I could have a shortcut that can move the cursor at the beginning of the next method and then just have to type a couple of up arrow to be where I want would be fantastic. Thank you. Visual Studio doesn't have such a function, but JetBrains' ReSharper does. At least is the only one that I know of to offer this functionality. For ReSharper the shortcuts are Alt-Up and Alt-Down , for

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

久未见 提交于 2019-11-28 01:14:52
问题 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 using FindToken(offset). I'm fairly sure this has to do with how each side counts EOL characters based on my current working hack but I'm not 100% that my hack is going to hold up in the long run. My hack is this line: charOffset += point.Line; I

Uninstall Visual F#

陌路散爱 提交于 2019-11-27 23:22:25
问题 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? 回答1: You can

How to package a .NET library that targets the Universal Windows Platform and depends on Visual Studio extension SDKs?

こ雲淡風輕ζ 提交于 2019-11-27 23:08:24
How do I package a Universal Windows Platform library that depends on Visual Studio extension SDKs such as the Microsoft Player Framework ? Specifically, I want users of my library to be able to use it immediately after pressing the Install button in NuGet, without having to manually add the extension SDKs to their projects. Assuming, of course, that the appropriate extension SDKs are actually installed. This is a series of questions and answers that document my findings on the topic of modern NuGet package authoring, focusing especially on the changes introduced with NuGet 3. You may also be

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

╄→гoц情女王★ 提交于 2019-11-27 19:05:29
问题 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 回答1: 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

How to get current used color theme of Visual Studio

扶醉桌前 提交于 2019-11-27 18:15:50
问题 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? 回答1: 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 {

Visual Studio intercepting F1 help command

断了今生、忘了曾经 提交于 2019-11-27 18:04: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

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

女生的网名这么多〃 提交于 2019-11-27 17:16:07
问题 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. 回答1: 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

How to make ReSharper re-evaluate its assembly reference highlighting

我的未来我决定 提交于 2019-11-27 16:41:17
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 highlighting. However, if I close the solution and re-open it, all is well : My Question: Ideally there would be