Adding code to regions during Resharpers code cleanup

by Bobby Cannon July 08, 2010 01:35 PM
More details to come as to how this works. However you can paste this code into Resharper's Options -> Languages -> C# : Type Members Layout. Simply uncheck the box "Use Default Patterns" and overwrite the custom pattern with the pattern below. More...

Tags: ,

Configuration

Clearing Visual Studio (2005/2008) Recent Project List (MRU)

by Bobby Cannon July 07, 2010 08:30 PM

If you do any branching and merging in Visual Studio's Team System then I know you may have asked yourself how can I clear my project "MRU" list on the start page? I reset mine multiple times a day. Especially after a long merge session for a release. You end up with four projects with the exact same name but different locations. Here is an example.

This can get confusing if you open projects from the recent project list. It may lead to you to start working on another branch other than your development branch. Use this registry tip so you will never have to explain to your team why you were working on the integration branch instead of your development branch.

Clear.regWindows Registry Editor Version 5.00

[-HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\ProjectMRUList]
[HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\ProjectMRUList]
[-HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\ProjectMRUList]
[HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\ProjectMRUList]

The original article can be found here: 

http://blog.sharpstyle.com/2007/03/24/clearing-visual-studio-recent-projects-list/

Tags:

Programming | Configuration

Remove Regions with Resharper

by Bobby Cannon July 07, 2010 08:27 PM

I am an avid ReSharper user and I couldn't seem to figure out how to get the code cleanup to remove "regions". I found this little bit of info so I thought I would pass it on.

  • Go to ReSharper | Options
  • Under Language Options, expand C#, then Formatting Style
  • Select Type Members Layout
  • Uncheck "Use Default Patterns" and don't be alarmed at all the text that appears
  • Remove it all and add the text in the <code> block.
Code<?xml version="1.0" encoding="utf-8" ?>
<Patterns xmlns="urn:shemas-jetbrains-com:member-reordering-patterns">
  <Pattern RemoveAllRegions="true">
     <Entry />
  </Pattern>
</Patterns>

Tags: ,

Programming | Configuration

Month List