[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush
[Collapse]CodeRush Classic
  What's New
 [Expand]System Requirements
 [Collapse]Concepts
  [Expand]Code Analysis
  [Expand]Code Style
   Feature Advisor
   FrictionFree Mode
   Mastering CodeRush Classic Features
  [Collapse]Visualization Tools
    Code Metrics
    CodeRush Classic Keyboard Mapping Window
    Debug Visualizer
    Debug Visualizer Toolbar
    DXCore Visualize Toolbar
    Flow Break Evaluation
    Region Painting
    Right Margin Line
    Spell Checker
    Structural Highlighting
    XML Doc Comment Painter
  [Expand]Navigation
  [Expand]Advanced Selection Tools
  [Expand]Clipboard Tools
  [Expand]Coding Assistance
   Unit Test Runner
 [Expand]Visual Elements
 [Expand]Tool Windows
 [Expand]CodeRush Classic Options
 [Expand]Examples
  Get More Help
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Region Painting

CodeRush Classic adds cool custom region painting to Visual Studio, reducing the visual noise associated with #region and #endregion directives when the region is expanded. Region Painting gives you the flexibility to enclose each method and property inside a named region, as shown in the screenshot below:

To create a named region around a method or property, press CTRL + 3. The '#region' directives are still in the code, so CodeRush Classic paints over them. If you put the caret (the insertion point in the code editor) on a line that has a region directive and select part of the text, you'll see the directive.

 

By default, the Region Painting feature is enabled. You can disable it within the Regions options page. Here, you can also specify the color settings of collapsed and expanded regions.

Note

This product is designed for outdated versions of Visual Studio. Although Visual Studio 2015 is supported, consider using the CodeRush extension with Visual Studio 2015 or higher.

Is this topic helpful?​​​​​​​