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
Related
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.
In Visual Studio 2015, if you have code like this:
var foo = that.Bar(); // Get the value
//foo++;
selecting Edit -> Advanced -> Format Document results in formatting like this:
var foo = that.Bar(); // Get the value
//foo++;
where Visual Studio has assumed two unrelated comments were related and grouped them together. The assumption of relation is because there are consecutive lines, one ending with a comment and the next starting with one. This can, of course, be worked around by adding blank lines but that is not always the best choice depending on the specific code. Note that Visual Studio 2013 did not have this feature.
I was unable to find any mention of this feature via internet searches. This is C#, and Visual Studio is configured to preserve tabs.
Is there any way to disable this one portion of the auto-formatting?
I don't think this is possible. I've found this post on GitHub where one comment mentioned your problem. CyrusNajmabadi wrote:
Interestingly enough, we added some support to align comments over multiple lines. So, for example, in the example being mentioned, post format you end up with:
Alignment is an interesting problem, and currently we have no support for alignment to happen with tabs when formatting between tokens. However, it gets more and more complex considering you might have these comments attached to items which themselves get moved around by formatting and thus may have their locations move to places that are not on tabstop boundaries.
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.
I've begun using MonoTouch 5.x. I feel like I'm fighting NIB's to use inheritance.
I want to use inheritance. I want to use a designer to make my views. I want it all.
So I've been searching for a tool that generates xxx.designer.cs files like VS does it: inserting the controls in code on the fly when designing using IB. Reducing NIB's to a design-time feature.
As far as I can tell, this is the cleanest approach with the best performance that allows me to go full C#, "visual inheritance", etc.
Does anyone know of such an initiative? In any form or shape?
Thanks.
In Microsoft Visual Studio you are able to write an implementation of IVsSingleFileGenerator.
Which is then used as custom tool to generate files at design time.
Maybe there is a similar feature in monodevelop.
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