---
# System prepended metadata

title: Code Generation & Typing

---

# Code Generation & Typing

Create new code more efficiently with CodeRush's intelligent code generation. Declare members in a single keypress. Surround code with try/catch or using blocks (again, in a single keypress), and more.

* Write Boilerplate Code Faster and with Fewer Keystrokes
* Add Using Directives and Common Member Implementations Instantly
* Create Code Elements Intelligently Based on Usage
* Surround Selected Code with Popular Language Constructs
* Intelligently Create New Code Based on a Sample Selection

![](https://i.imgur.com/xyDiFKv.gif)


Learn more about Code Generation & Typing


# Code Refactoring & Transformation

With over 100 refactorings and intelligent code providers, CodeRush delivers the power you need to easily change code, improving readability and the internal structure without altering external behavior.

Safely make changes to the API (add or remove parameters, add interface members, move members up the hierarchy) or update legacy code to support new language features. Focus more on code quality and functionality, and let CodeRush handle the routine changes to the code base.

![](https://i.imgur.com/kl30p8Y.gif)



Learn more about Code Refactoring & Transformation

# Code Navigation & Search

Move through the code at warp speed. CodeRush includes innovative, powerful and exclusive tools that help you be exactly where you want to be in an instant, regardless of solution size.

![](https://i.imgur.com/IFrTh5O.gif)


Learn more about Code Navigation & Search


# Code Style & Formatting

Effortlessly write code in any coding style with CodeRush. With a rich set of code style settings, you get to focus on code quality and functionality while CodeRush focuses on matching the style needed in the moment. And code style settings can be separately configured (if needed) for yourself, individual solutions, and your entire team.

And any code can instantly adhere to your style by applying Code Cleanup. You can format code, remove unused code, and sort and group members in a single action. You can do this for the active file or instantly clean up entire folders or projects. CodeRush gives you complete control over the entire process.

And if you like, CodeRush will clean up code automatically (to your specifications) when saving documents.

Whether it's Style Cop guidelines or any other style you prefer, CodeRush can organize your code and make it easier to read.

![](https://i.imgur.com/un7q5lY.gif)




Learn more about Code Style & Formatting


# Code Visualization & Readability

CodeRush can add code visualization features to the Visual Studio editor, which can improve code quality and readability, and help you more easily create and debug code.

Features include:

* Highlight and Correct Misspelled Words in Code, Comments, and Strings
* Preview Expression Values In-place while Debugging
* Perform Common Tasks with Type Members with a Single Click
* Highlight Code Blocks and Region Boundaries
* Make Sure All Your Code Fits Onscreen with a Right Margin Indicator Line

![](https://i.imgur.com/qYZtJzj.png)


Learn more about Code Visualization & Readability

# Code Coverage & Testing

When it comes to Test Driven Development, CodeRush is your tool of choice. The CodeRush Test Runner is top of its class. It's the fastest test runner available for .NET. Run and debug a single test, or all tests in the solution, You can even focus on a group of related tests using the Sessions functionality. In-source icons let you run, debug, and see test run status directly from code. And it simply works across test frameworks without any configuration required.

NUnit, MSTest (VS Testing), xUnit, and MSpec tests all are working right out of the box. .NetCore (including .Net 5 and .Net 6), .Net Framework, and multi-target projects are also supported.

CodeRush Templates make it easier to create new tests with a simple keystroke, while Code Coverage helps your entire team find problem areas in the code. You can even reveal line-by-line coverage details if you like.

![](https://i.imgur.com/vD45ihr.png)


Learn more about Code Coverage & Testing