Display information text below the open file tabs - c#

I am writing an VSIX extension for Visual Studio 2019 and I want to display some "information text" to the user. I really like the way that auto-format displays them.
Now, how would I create such an window. I would hope that it is just a matter of something like Message.DisplayInfo() or whatever. Anyhow I would rather think that you'd need to create a new Window, if this is the case, how would I get it's Guid?

See Infobars documentation when it is appropriate to use and how to implement. This Notifications and Progress for Visual Studio document also lists other options.

Related

Change find all / search all result interface in Visual Studio 2019 community

i dont like the new interface of my search all, it suddenly change when i reinstall my visual studio
here is my search all result interface
the result suppose like this
Do you guys know how to change the result interface ?
It sounds like you are using 2 different types of search.
The first capture you provide is from Find and replace feature, that cand be raised with shortcut Ctlr + F, and when you select option "Find all". It returns a lsit fo files that match the text you are searching for. You may check Microsoft documentacion for Find and replace
The second capture represent the usage of Find references in your code, that provides a way to find where particular code elements are referenced throughout your codebase. You can find more information in Microsoft documentacion for Find references.
If you want to make use of Find references feature, you should use shortcut Shift + F12 or simply you can make right click over any object/class/element in your code, and select option Find all references.
Capture: Find all references using right click and contextual menu
Remember that this would not work with a simple piece of text, you must find references of an existant element, like a model, a class, a variable, etc.
Hope this info could be useful.
[EDIT]
Maybe I could misunderstand your question. If you refer to the theme (backgroud anf font color mainly) of the interface, you could set Light theme option, through main menu, selecting Tools menu, and then Options. once there, enter section General, under Environment option, and select Light option in dropdownlist associated with Color theme option.
Check this link (made for VS CE 2017, but work as well) to see captures of the process:
https://ourcodeworld.com/articles/read/869/how-to-change-to-a-dark-theme-in-visual-studio-community-2017
[EDIT FOR COMMENT]
I've checked it with VS 2019. As you said, default view for Find all feature looks like references result view. If you want to keep the "classic" list view, you can simply click on ListView button, at the right top, on the bar that appears over your result section, as you can see in following capture.

How do you get custom intellisense comments to appear when using a custom DLL in Visual Studio C#?

I have been wondering how to setup intellisense comments for Visual Studio (minimum version 2013) and have been having trouble. Using XML comments are only useful for generating the separate file for documentation.
What I want is to be able to put descriptions on functions/methods that show up when I hover over them in a project I am working that includes the DLL that should have these descriptions already set. This is something trivial to be honest but it would be really nice to have this functionality. But every thing I try seems to end with no comments being shown in the project when I hover over these functions/methods.
To restate my question, what needs to be done to allow for my descriptions of functions/methods to appear when I hover over them when they are used in a separate project/solution?
Okay. I got it to work. I just checked the XML documentation file box in Project Properties -> Build Tab. I also needed to include it as Alexei Levenkov helped me out with in the comments. Doing both of those things allow them to show up.

Visual Studio - Custom document tab bar grouping

Does anybody know how the Visual Studio editor can be customized to group certain open documents together. It's almost like the "Document Well 2010 Plus" extension (http://blogs.msdn.com/b/visualstudio/archive/2010/06/10/document-well-2010-plus.aspx). We don't want to group them by project, but on another custom way. I searched in the "editor extension points" document, but could not find something useful.
I can think of the following ways that may help you:
Use Productivity Power Tools - this groups and colours tabs based on project
Tear off the tabs you want to keep together into a new window
If you want them really separate - open a new instance of Visual Studio!
You could also try Tabs Studio, however, I have tried it and didn't really like it that much, though may suit your needs.
For Visual Studio 2017, Productivity Power Tools has been broken up into a bunch of extensions, so now the one people would want for this question is Custom Document Well

How to get DropDownList of all method & class declarations, so upon clicking on one it goes to it?

It seems like all I use bookmarks for is to keep track of classes and methods. The problem is the line numbers become incorrect with editing. In addition, I have to manually set each bookmark. Is there a way to get a list of classes/methods within a file and click to go directly to it? Perhaps a plugin? Ideally I'd like a graphical representation that I could click on. Surely there is a plugin out there for that?
Try C# Resharper http://www.jetbrains.com/resharper/ - it cost some license, but really worth it.
C# Resharper http://www.jetbrains.com/resharper/ -is best.
People are suggesting Resharper already, but if you're using Visual Studio 2010 you could use a built in feature called Naviagate To
Just press:
Ctrl + ,
You can search for files/classes/objects/methods in your solution.
More information about Navigate To on this page: http://blogs.msdn.com/b/vseditor/archive/2009/09/22/searching-and-navigating-code-in-visual-studio-2010.aspx

Create a dynamic project template in VS 2010?

This might sound a bit of an odd question but I know what I want to achieve, just don't know if it's possible.
Firstly, I'd like to be able to create a visual studio project that the 2 developers that work with me can use as a basis for all new websites. I want to drop all the common files that we use in there, like jQuery, CMS files etc. so that every time they start a new project they don't have to worry about all of that stuff. I guess to do this I just set up a project and "File > Export Template" ?
Now, here's the tricky bit...
When you open up one of the default templates in VS it asks you a few questions, such as if you want to use a master page or if you want to use code behind etc.
What I would like to do is set up something similar so that when you use the project template it asks you what version of jQuery you want to use so that it can import the right file, or for example it might ask you if you want to include certain user controls that the CMS contains. If you tick the box then the folder with the necessary user controls would be put in your new project for you.
I know MS can do this but can a user like me include functionality like that in my own project template?
Hope that makes sense.
Some more digging turned up the iWizard interface and this tutorial...
http://msdn.microsoft.com/en-us/library/ms185301

Categories

Resources