.NET Tips and Tricks

Blog archive

Supporting Test First Development with CodeRush

CodeRush doesn't claim to have as many new features in its Visual Studio 2010 version as JetBrain's ReSharper did in their new version. And I'm not sure that's a bad thing: The product is actually packed with features. In my first review of CodeRush back in 2009, I noted that I had a hard time mentally managing all the key stroke combinations used to access all the functionality in the package.

I may have been overreacting. With CodeRush installed, Ctrl_+ often activates the feature you want (based on where your cursor is) or brings up a context sensitive menu of available actions. For instance, while I'm a big fan of Test Driven Development, I find the "generate by usage" feature of Visual Studio 2010 that supports "test first" development awkward to use. To use the native Visual Studio feature I have to type in a statement that uses a property that I haven't written yet, move my mouse back to the SmartTag at the start of the property name, click the dropdown arrow, and select the option to create the property... and I always get an auto-implemented property. I've got nothing against auto-implemented properties, but sometimes I know that I'll need a backing field.

With CodeRush, I type in the property name, press Ctl_+ (you can reassign this key if you want), and get a drop down menu right under the cursor that I can arrow down through for the mouse. Furthermore, this menu gives me choices: an auto-implemented property or a "real" property complete with a backing field. CodeRush then lets me choose where the property is to go in my code. And my hands never have to leave the keyboard!

As far as I'm concerned this is the way that the feature should have been implemented.

Posted by Peter Vogel on 08/26/2010 at 1:16 PM


comments powered by Disqus

Featured

  • Microsoft's Lander on Blazor Desktop: 'I Don't See a Grand Unified App Model in the Future'

    For all of the talk of unifying the disparate ecosystem of Microsoft-centric developer tooling -- using one framework for apps of all types on all platforms -- Blazor Desktop is not the answer. There isn't one.

  • Firm Automates Legacy Web Forms-to-ASP.NET Core Conversions

    Migration technology uses the Angular web framework and Progress Kendo UI user interface elements to convert ASP.NET Web Forms client code to HTML and CSS, with application business logic converted automatically to ASP.NET Core.

  • New TypeScript 4.2 Tweaks Include Project Explainer

    Microsoft shipped TypeScript 4.2 -- the regular quarterly update to the open source programming language that improves JavaScript with static types -- with a host of tweaks including a way to explain why files are included in a project.

  • What's Top-Paying .NET Skill, In-Demand Language?

    New tech reports reveal the top-paying .NET skills and most in-demand programming languages in the Microsoft-centric developer landscape.

Upcoming Events