can't find how to change code generated for 'Check parameter for null'

Using the current EAP:

JetBrains ReSharper 6.1 EAP C# Edition Pre-Release

Build 6.1.0.11493 on 2011-11-04T16:52:08

Visual Studio 10.0.40219.1.


By default the 'Check parameter for null' quick fix adds code that does "if (foo == null) throw new .." and I want to change that.

With R# 5.0 there appears to have been a 'Pattern Catalogue' that could be opened to change the code:

http://www.jetbrains.com/resharper/webhelp50/Reference__Windows__Pattern_Catalogue.html

However, I don't see 'Pattern Catalogue' in my ReSharper -> Tools submenu.

There _is_ a 'Live Templates' menu item under the ReSharper top-level menu, but looking around in the C# ones there, I can't find that bit of code.  The 3 tabs available (Live, Surround, File) don't seem like they necessarily match since 'Live' is the closest, but since there's no need to get into the fill-in-the-template mode of a 'real' live template, I'm not sure that's where this template of code would live.

The current webhelp seems to call this kind of situation a 'Parameterized Template' AFAICT?

http://www.jetbrains.com/resharper/webhelp/Templates__Template_Basics__Parameterized_Templates.html

However, I still couldn't find anything that matched in the Templates Explorer (it'd be nice to be able to search for 'ArgumentNullException' to find templates that contain that. :))

I haven't tried to change this code before, so this may be an issue unique to the EAP, but I'm guessing it's far more likely to be PEBKAC and I'm just not seeing it.

Please sign in to leave a comment.