[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
[Collapse]CodeRush
  System Requirements
  Improve Performance
 [Expand]Features by Language
 [Expand]Getting Started
 [Expand]How To
 [Collapse]Coding Assistance
  [Expand]Code Templates
  [Expand]Auto Completion
  [Expand]Clipboard Tools
  [Collapse]Selection Tools
   [Expand]Selection Embedding
    Camel Case Selection
    Multi-Select
    Comment/Uncomment Selection
    Selection Expand/Reduce
    Include Previous/Next Element
    Smart Duplicate Selection
  [Expand]Code Providers
  [Expand]Declare Menu
  [Expand]Typing Helpers
 [Expand]Navigation and Search Tools
 [Expand]Static Code Analysis
 [Expand]Visualization Tools
 [Expand]Code Style Assistance
  Building Assistance
  Debugging Assistance
 [Expand]Refactoring Assistance
 [Expand]Unit Testing Assistance
 [Expand]Decompiling Tools
 [Expand]Configuration Options
 [Expand]Extensibility
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Smart Duplicate Selection

You can select a code block and use the Shift+Enter shortcut to duplicate it. CodeRush enables you to create structurally similar code blocks.

Expanded Tips and Tricks

  • The last duplication is repeated if you press Shift+Enter without selecting any code.
  • Text fields can be defined manually before duplication using Multi-Select.
  • You can dismiss all text fields using the Esc key if Smart Duplicate Selection generates unnecessary text fields.

Expanded See Also

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