Skip to main content
Chat Now
Buy
Support Center
Documentation
Blogs
Training
Demos
Free Trial
Log In
Menu
CodeRush
All docs
V
22.2
22.2
22.1
Previous Versions
21.2
21.1
20.2
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1.
18.2
The page you are viewing does not exist in version 18.2.
18.1
The page you are viewing does not exist in version 18.1.
17.2
The page you are viewing does not exist in version 17.2.
Search:
Search
Search in…
DevExpress documentation only
All DevExpress web resources
Docs
>
CodeRush: IDE Productivity Extension for Visual Studio
>
Coding Assistance
>
Custom Template Creation
>
Text Commands
>
Formatting
>
Format
All docs
V
22.2
General Information
Support Services
Install Trial Version
Install Registered Products
NuGet Packages
Install Updates
Security Information
UI Localization
IDE Productivity Tools
CodeRush for Visual Studio (FREE)
QA/Web Testing Tools
TestCafe Studio
Desktop UI Controls
Controls
WinForms
WPF
VCL (Delphi & C++Builder)
FREE UTILITIES
WinForms Skin Editor
WPF Theme Designer
Frameworks and Libraries
AI Integration
XAF - Cross-Platform .NET App UI
XPO - .NET ORM Library (FREE)
XPO Profiler
Core Libraries
Drawing Graphics Library
.NET App Security & Web API Service (FREE)
Web UI Controls
Controls and Extensions
DevExtreme (Angular, React, Vue, jQuery)
Blazor (Server, WebAssembly, and Hybrid)
ASP.NET Core
ASP.NET Web Forms
ASP.NET MVC 5
ASP.NET MVC 5 (JavaScript-based)
ASP.NET Bootstrap
FREE UTILITIES
ASP.NET Theme Builder
ASP.NET Theme Deployer
Mobile
.NET MAUI
PDF & Office Document APIs
Word (DOCX, DOC)
Excel (XLSX, XLS)
PowerPoint (PPTX)
PDF
Reporting & Analytics
DevExpress Reports (all supported platforms)
Report & Dashboard Server
BI Dashboard
End-User Documentation
Interface Elements for Desktop
Interface Elements for Web
Dashboard for Desktop
Dashboard for Web
22.2
22.1
Previous Versions
21.2
21.1
20.2
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1.
18.2
The page you are viewing does not exist in version 18.2.
18.1
The page you are viewing does not exist in version 18.1.
17.2
The page you are viewing does not exist in version 17.2.
Filter table of contents
Clear search input
Full-text search
CodeRush: IDE Productivity Extension for Visual Studio
Getting Started
Coding Assistance
Code Templates
Custom Template Creation
Using Text Commands
Referencing Namespaces
Linking Identifiers
Providing Input Fields
Using Variables
Iterate Through Elements
Template Name Variables
Alternative Template Expansions
Context Providers
Text Commands
Add References
Auto Completion
Bookmarks
Clipboard
Code Context
Code Generation
Code Templates
Change Caret Position
Formatting
AlignNewLines
BeginFormat
DeleteAfterFormat
EndFormat
Format
PopIndent
PushIndent
SetLeadingWhiteSpace
TrimLeft
Iterate Through Elements
Links
Markers
Selection
Text Fields
Text Operation
String Providers
Auto Completion
Clipboard Tools
Selection Tools
Code Providers
Declare Menu
Typing Helpers
Refactoring Assistance
Navigation and Search Tools
Code Style Assistance
Visualization Tools
Debugging Assistance
Unit Testing Assistance
Static Code Analysis
Building Assistance
Configuration Options
Troubleshooting
General Information
Support Services
Install Trial Version
Install Registered Products
NuGet Packages
Install Updates
Security Information
UI Localization
IDE Productivity Tools
CodeRush for Visual Studio (FREE)
QA/Web Testing Tools
TestCafe Studio
Desktop UI Controls
Controls
WinForms
WPF
VCL (Delphi & C++Builder)
FREE UTILITIES
WinForms Skin Editor
WPF Theme Designer
Frameworks and Libraries
AI Integration
XAF - Cross-Platform .NET App UI
XPO - .NET ORM Library (FREE)
XPO Profiler
Core Libraries
Drawing Graphics Library
.NET App Security & Web API Service (FREE)
Web UI Controls
Controls and Extensions
DevExtreme (Angular, React, Vue, jQuery)
Blazor (Server, WebAssembly, and Hybrid)
ASP.NET Core
ASP.NET Web Forms
ASP.NET MVC 5
ASP.NET MVC 5 (JavaScript-based)
ASP.NET Bootstrap
FREE UTILITIES
ASP.NET Theme Builder
ASP.NET Theme Deployer
Mobile
.NET MAUI
PDF & Office Document APIs
Word (DOCX, DOC)
Excel (XLSX, XLS)
PowerPoint (PPTX)
PDF
Reporting & Analytics
DevExpress Reports (all supported platforms)
Report & Dashboard Server
BI Dashboard
End-User Documentation
Interface Elements for Desktop
Interface Elements for Web
Dashboard for Desktop
Dashboard for Web
Format
Feb 17, 2021
«Format»
Formats text span from start of expansion to current insertion point.