How to enable grouping in the File Structure Window in VS2017 - resharper

I recently installed Resharper 2017.1.3 on Visual Studio 2010 and 2017.
On 2010, the File Structure window has a nice grouping based on categories (private method, public methods, override, etc - see image below). However, in 2017 there is no grouping at all.
I'd like to know if anyone can show me how to enable that in 2017. I tried researching it but couldn't find any solution.
thanks,

ReSharper's structure window doesn't have any grouping functionality as such - it always shows files in the order in which everything is defined. However, it does show regions as groups, as in your first screenshot. Those EqualsCore methods are both defined inside a region, and so get grouped by that.
(You'll also notice the little 'x' in the top right of the region grouping box. Click that and ReSharper will remove the region.)

Related

Modules in Project Explorer are not grouped anymore into modules, classes and forms

Modules in MS Office Project Explorer have always been grouped into forms, modules and classes, with "pluses" that allow to collapse or expand the groups. Either I have pressed some random hotkey, or the latest MS Office update messed it up, BUT now all my modules are just a list sorted by name (see the screenshot). It's the same in all Office programs. What has happened, and is there a remedy to this? I want my groups back :-(
I looked through all settings in VBA Editor, but I never found anything related to the problem.
Press the Toggle Folders button in your Project Explorer:
Alternatively use the Toggle Folders button in the context menu of the Project Explorer.

TFS 2010 - Annotate Class Files

Within TFS 2010 there is the functionality to Annotate a class / page so that it shows where different pieces of code have been changed, along with who changed them, the date and the change set.
So my question, which is hopefully a relatively straight forward one, is: Can this be filtered to a date range, work item ID or user? Or would a separate report be needed to provide this functionality? I am mainly interested in the ability to do this within Visual Studio 2012 and not so much a report, as it would help with our release proceedure in development.
Annotate shows who wrote (or last changed) each line of code. So restricting it to a date range would fundamentally change the way it worked. VS/TFS don't provide any ability to customize how Annotate works.
You could always create your own Visual Studio add-in that provided this functionality.

visual studio 2010 not opening projects

i just installed visual studio 2010 and it is not opening any projects .I can make projects but i can not add any file in it and also it is not opening recent projects.
I am stuck here , kindly cooperate with me!
OK, sounds like the installaion got munged up.
first obvious questions: do you have any code that has actually been saved?
If "yes," copy that code to an alternate location, and use the simplest solution: use the Windows Control Panel to deinstall the MSVC instance and reinstall. If no code saved, just de-install and reinstall.
That's the obvious answer. You may also check the location for the project files, and the settings Visual Studios uses.
from the toolbar, click "tools".
From the drop-down list select "options"
Within the displayed list, scroll down to "projects and solutions"
expand that list (click on the little "+" box)
3 locations will be displayed.
Make sure you have write permission to all three locations
all the check boxes should be selected. Especially the one marked "save new projects when created"
click "OK" to accept the changes

VS2012 methods organizing by drag-and-drop

I work in VS2012 and would like to organize the order of members in a class by drag-and-drop, like I can in Eclipse.
However, the members outline in a right-top of the screen and also in a class view or in solution explorer do not give such an option.
Is there a way to do it?
Code Maid is a free Visual Studio extension that adds a digging window tool.
This will answer to your needs, I believe.
This tool also allow you to reorder code elements with drag & drop directly within this window.

Default to the T-SQL Pane view within Visual Studio 2012 Database Project

When working with a Database Project in Visual Studio 2012, VS defaults to the "Design-View" pane when you add or edit a table. While you can work in split-screen mode, the T-SQL pane defaults to the bottom pane.
As I prefer to work with T-SQL directly as opposed to the designer, I constantly am switching to make the T-SQL pane the top-most editor in order to work with the object. Unfortunately, VS does not remember this preference, so each and every time I work with a table I must change to make the T-SQL pane appear on top as opposed to beneath the designer pane.
I've looked to see if there is a setting under Tools --> Options to control this behavior, but so far I have been unable to find a setting that does so. I've done a few google searches on the topic as well, but haven't found anything helpful for this particular case.
This is more of an annoyance than anything else for me, but as I am finding myself constantly switching panes I wonder if anyone knows of a setting, either within VS or the registry or some other config file that would force VS to either remember my preference or default to the T-SQL Pane on top of the Designer Pane?
If you want to get rid of the designer completely, try the following:
Right-click on the file, and select Open With...
Select Microsoft SQL Server Data Tools, T-SQL Editor,
Click on Set as Default
Click OK.
Next time you'll be able to simply double clicking the file to open it in T-SQL.

Resources