RoutedUICommands in WPF Syntax Editor
3 Dec 20241 minute to read
EditCommands members
The EditControl ships with a variety of built-in RoutedUICommands to perform various editing operations in it using commands. The EditCommands class in the Edit WPF library contains lot of necessary commands. The following are the list of RoutedUICommands available in the EditControl.
RoutedUICommand |
Shortcut |
Description |
Backspace |
BACKSPACE |
Performs backspace key operations. |
CollapseAll |
N/A |
Collapses all the blocks in the EditControl text. |
CommentSelection |
CTRL+K+C, CTRL+E+C |
Selects comments or individual lines based on the selected language. |
Copy |
CTRL+C, CTRL+SHIFT+C, CTRL+INSERT |
Performs copying of text. |
Cut |
CTRL+X, CTRL+SHIFT+X, SHIFT+DELETE |
Cuts the text. |
Delete |
DELETE, CTRL+SHIFT+H |
Performs delete key operation. |
ExpandAll |
N/A |
Expands all the blocks in the EditControl text. |
Find |
CTRL+F |
Opens the find and replace window with the selected quick find tab. |
FindAllReferences |
SHIFT+F12 |
Finds all the occurrences of the specified text. |
IncreaseIndent |
N/A |
Increases the indent of individual or selected lines. |
DecreaseIndent |
N/A |
Decreases the indent of individual or selected lines. |
InsertNewLine |
CTRL+ENTER |
Inserts a new line at the current cursor position. |
New |
CTRL+N |
Resets all the text in the EditControl. |
Open |
CTRL+O |
Opens an existing file and displays the OpenFileDialog to select the file. |
Paste |
CTRL+V, CTRL+SHIFT+V, SHIFT+INSERT |
Paste the copied text to the clipboard. |
Print |
CTRL+P |
Sends the EditControl content to a printer. |
PrintPreview |
CTRL+F2 |
Displays a preview of the content to be printed. |
Redo |
CTRL+Y, CTRL+SHIFT+Y, CTRL+SHIFT+Z |
Performs redo operations. |
Replace |
CTRL+H |
Replaces the text specified in the Find What field with the field in Find and Replace window. |
Save |
CTRL+S |
Saves the text in the EditControl to a file. It displays the SaveFileDialog to enter the name and location to save the file. |
SaveAs |
N/A |
Allows the user to save the file under a new name or location. |
Search |
F3 |
Finds the text specified in the last search, without opening the Find and Replace window. |
SearchInSelected |
CTRL+F3 |
Finds the text specified in the last search within the selected text, without opening the Find and Replace window. |
SelectAll |
CTRL+A |
Selects all the text in EditControl. |
ShowIntellisense |
CTRL+SPACE, CTRL+J |
Displays the provided IntellisensePopup if the IntelliSense items are not empty. |
UncommentSelection |
CTRL+K+U |
Removes the comment Lexem from individual or selected lines. |
Undo |
CTRL+Z |
Performs undo operations. |