I use Java Eclipse and I like how I can toggle between Sorted/Unsorted view of the methods and fields. Unsorted makes it easier to navigate the Source code as-is.
However, Visual Studio 2010 doesn't allow unsorted view intutively in its Class View pane.
Instead, it has other ways to sort:
Does anyone know how to put the Class View in unsorted view?
You can use one of the new features of VSCommands to do something similar - display the methods / fields / properties as they appear in the code file with the File Structure window.
Hope this helps.
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.
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
When you are typing with Intellisense and it shows you the parameters within a class, you can select a parameter and keep going until you arrive at the base level. When you are debugging, Visual Studio lets you stop on objects and inspect all of the parameters or fields within them.
Is there a way to build a treeview or diagram of all of the class parameters? I have a large class that included ton of sub objects and properties and I would like to build a view of all of its properties.
If you are just talking about being able to visualize your classes (through Visual Studio, not actually building a hierarchy through code) you can do it like this: In Visual Studio, click View - Class View. This will give you a tree view of your classes.
If you click View - Object Browser you will see a tree view of classes in other assemblies too, not just your classes.
EDIT
I think you are looking for something like the Solution Navigator in the Productivity Power Tools Visual Studio extension. Click Tools - Extension Manager - Online Gallery. Search for Productivity Power Tools and install it. You will then see an option under the View menu for the Solution Navigator.
If you want control over the way variable values are displayed during Visual Studio debugging sessions, you can apply the DebuggerDisplay attribute to the class of interest. You can alternatively overload ToString() on the class of interest to print the info you desire, assuming that this behavior would not conflict with any other requirements you may have.
I have a tutorial to implement "My Own ILDASM" , may I know what approach i can use.
I have visual studio 2010 installed on my computer , i added MenuStrip and OpenFIleDialog.
My Questoins
1) I need to add a treeview control to display type members hierarchy in a tree
any direction will be enough
after selecting a dll from winform , how can i show that dll info in the tree view.
Any info will be appreciated.
First, bone up on reflection.
Then, build up the namespaces and have those as top level tree view items. Next get all the Types. For example: Assembly.GetTypes.
From here you should be getting the hang of it. For each type, get the methods, properies, fields etc and make the subnodes.
Not sure the best way to achieve this and I would like your input.
I would like to generate a View - a ViewModel and another couple of classes.
I don't want to generate a project but just some classes.
Implementing the IWizard can you generate more than one class at one time?
Ideally I would like the user to click on a template in visual studio ,input some names etc... and generate this 4-5 classes for them.
What is the best to achieve this? Any links or suggestions on approach?
Thanks.
I would suggest using a T4 template. The engine's built right in to Visual Studio 2010, and there's a good free editor you can get through the Extension Manager (Tools > Extension Manager > Online > Search for "tangible T4").
As for how to code the templates, here's a good blog post on it which will get you started:
http://www.olegsych.com/2007/12/text-template-transformation-toolkit/
There's some info in MSDN too: http://msdn.microsoft.com/en-us/library/bb126445.aspx