Keep Your C# Clean with Tidy C# Extension

This post has been republished via RSS; it originally appeared at: Channel 9.

Batch styling? Right-click clean up? Quick code format fixing?

That's what what I have in my mind about today's extension.

Pick a C# File, right-click and select "Clean up" and Run. And then check out your now cleaned up and formatted code.

That's today's extension!

Tidy C#

A Visual Studio extension that adds a few enhancements to improve C# code development. It provides a list of automatic refactoring tools for cleaner C# code.

  1. Close all open windows
  2. Right click on a C# file, folder, project or even the whole solution.
  3. Select "Clean up C#..."
  4. In the pop-up select the clean up actions you are interested in.
  5. Click Run

image

It will then open each file, apply the clean up actions, save and close. It can take a few minutes for a large codebase.

Recommendation

Check out all of its changes in your source control tool diff tool.

[Click through to download it]

It's open source too (and under active development... ;)

image



Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.