Jun 17 2009

ReSharper 4.5: Remove Regions around Interface Members

Category: ReSharperJay Smith @ 07:12

I just upgraded to JetBrains ReSharper 4.5, a productivity tool I dearly love…,  ok, so you know when someone says that they are about to rip someone a new one ;-).  Well, I am not going to rip too bad.  I will just say I DO NOT like regions, used them when I was a boy, but now I am a man, ok, so you get the picture ;-).

So, here is the story I am working along writing a WCF Service for my current project, and run the Full Cleanup (Alt-Ctrl-Shift-F) and after it is done, I see these #region tags around the members that implement the interface.  I instantly start looking for how to turn that off. 

Here are the steps I took to do just that:

  • Go to ReSharper->Options
  • Navigate to Languages->C#->Type Members Layout
  • Uncheck Use Default Patterns (Don’t be scared, the Custom Patterns populates with a lot of XML, Don’t Panic!)
  • Scroll almost down to the bottom of the text, looking for <!—interface implementations –>
  • Delete the <Group>…</Group> tags

Now running the Cleanup does not add pesky regions around my interface members, I am going to have to spend more time in these setting because I have a feeling this is not the only place they have sneaked into.

Oh, if you delete that line and want to get it back, just check the Use Default Patterns and apply the settings, it will re-write the default settings.  I verified this on my install and it worked fine.

*UPDATE*

I spent a few more minutes today and just did a blanket remove of any of the <Group>…</Group> in the Type Members Layout and all is good.

Tags:

Sep 4 2008

JetBrains releases ReSharper v4.1

Category: Cool Tools | ReSharperJay Smith @ 11:09

If you are a ReSharper fan like I am you need to know that v4.1 has just be released.  This version has a huge list of improvements, the main one are support for VS 2008 SP1, Better ASP.NET support, Performance improvements, and a ton of stability improvements and bug-fixes.  Read the 4.1 release notes to see all the goodness in this release. If you are new to ReSharper check out the feature map to see what you are missing.

Tags: ,

Jun 21 2008

ReSharper 4.0 Gone Gold!

Category: Cool Tools | ReSharper | Visual StudioJay Smith @ 00:06

On June 9, 2008, yes I am behind on this one, Ilya Ryzhenkov  announced on the ReSharper Blog, that ReSharper 4.0 has been released.  This release includes full support for C# 3.0, lambdas, extension methods, LINQ, object and collection initializers, anonymous types, automatic properties and partial methods.  Check out a more complete list on the New Features page.

I have downloaded and installed the this version and am loving the full Visual Studio 2008 integration.  The one thing that I might argue about is the implicitly typed locals (“vars”).  I haven’t made up my mind on these yet.  I will have to re-wire my thinking, since I always think about the old Visual Basic Variant type and shiver.

I still believe that ReSharper is a must have for any developer coding in reverse or using any of the *DD, (TDD, DDD, BDD) styles of development.

Tags: , ,

May 23 2008

ReSharper v4.0 Beta for VS2008 Released!

Category: Cool Tools | ReSharperJay Smith @ 00:05

JetBrains has released ReSharper v4.0 Beta for VS2008,  I have been running the nightly builds for a while and am glad to see the beta realase.  I have already downloaded and installed it, and like the nightly builds it appears very usable.

Some new features in ReSharper 4.0:

  • Full support for C# 3.0 and LINQ
  • New code analysis, context actions and quick-fixes
  • New refactorings (such as Convert to Extension Method, Convert to Automatic Property, Convert Anonymous Type to Named)
  • Complete Statement, Ctrl+Shift+Enter
  • CamelHumps in Code Completion
  • Live Templates Editor & Manager
  • Recent Edits
  • ASP .NET speed ups

Pick up the ReSharper 4.0 Beta for VS2008 here http://www.jetbrains.com/resharper/beta/beta.html.

If you are like me you don't want to go a day without it.

Tags: ,