CodeRush

Consume-first Development

When coding, it is often useful to use an identifier before it has been declared. This is a common situation for Test Driven Development. CodeRush by DevExpress provides a powerful tool, which enables you to quickly declare types, members, variables on basis of their references.

Automatic Declarations

The automatic declaration features of CodeRush are a quick way to generate the code you need. It starts with a call or a reference to something that doesn't exist yet. Just move the caret to the reference that needs to be declared, press the CodeRush key (Ctrl+` by default) and choose the appropriate code provider from the CodeRush context menu. CodeRush will do the rest, declaring the missing member, type, enum, variable etc. You can also access the declaration features via the Code item of Visual Studio context menu.

If you are declaring a class, enum, struct, or interface, CodeRush deeply scans surrounding source code for hints about the type you want to declare and intelligently declares members for all found references. Watch the video below for an example.

Deep Declare - CodeRush by DevExpress

CodeRush supports the following declarations:

Types

Declare AttributeDeclare ClassDeclare Class With Properties
Declare DelegateDeclare EnumDeclare Interface
Declare Struct

Members

Declare ConstructorDeclare EventDeclare Event Handler
Declare GetterDeclare Initialized PropertiesDeclare Initialized Property
Declare MethodDeclare Method (abstract)Declare Properties
Declare PropertyDeclare Property (auto-implemented)Declare Property (with backing store)
Declare Setter

Variables

Declare Enum ElementDeclare FieldDeclare Field (read-only)
Declare Initialized FieldDeclare Initialized FieldsDeclare Local
Declare Local (implicit)

MVC Elements

Declare MVC ActionDeclare MVC ControllerDeclare MVC View

The automatic declarations can be accessed via shortcuts or from the appropriate code providers.

More from DevExpress
Live Chat
Have a pre-sales question?
Need assistance with your evaluation?
We are here to help.
Chat is one of the many ways you can contact members of the DevExpress Team. We are available Monday-Friday between 7:30am and 4:30pm Pacific Time.
If you need additional product information, require pre-sales assistance, or want help with your order, write to us at info@devexpress.com or call us at
+1 (818) 844-3383.