Back to Devexpress

Keyboard Shortcuts in Rich Text Editor

wpf-403368-controls-and-libraries-rich-text-editor-keyboard-shortcuts.md

latest17.3 KB
Original Source

Keyboard Shortcuts in Rich Text Editor

  • Nov 29, 2023
  • 6 minutes to read

The following table lists default keyboard shortcuts and corresponding commands in Rich Text Editor.

To change default shortcuts, use the RichEditControl.RemoveShortcutKey and RichEditControl.AssignShortcutKeyToCommand methods. Refer to the following project for a complete code sample:

File Operations

ShortcutDescriptionCommand
CTRL+NCreates an empty document.CreateEmptyDocumentCommand
CTRL+OInvokes the Open dialog box to open a new file.LoadDocumentCommand
CTRL+SSaves changes in the current document.SaveDocumentCommand
F12Invokes the Save as dialog box to save a document in the specified file format to a new location.SaveDocumentAsCommand
CTRL+PInvokes the Print dialog box.PrintCommand
ShortcutDescriptionCommand
LEFT ARROWMoves the cursor one character to the left.PreviousCharacterCommand
CTRL+LEFT ARROWMoves the cursor one word to the left.PreviousWordCommand
RIGHT ARROWMoves the cursor one character to the right.NextCharacterCommand
CTRL+RIGHT ARROWMoves the cursor one word to the right.NextWordCommand
DOWN ARROWMoves the cursor down by one line.NextLineCommand
CTRL+DOWN ARROWMove the cursor down by one paragraph.NextParagraphCommand
UP ARROWMoves the cursor up by one line.PreviousLineCommand
CTRL+UP ARROWMoves the cursor up by one paragraph.PreviousParagraphCommand
ENDMoves the cursor to the end of the current line.EndOfLineCommand
CTRL+ENDMoves the cursor to the end of the current document.EndOfDocumentCommand
HOMEMoves the cursor to the start of the current line.StartOfLineCommand
CTRL+HOMEMoves the cursor to the start of the document.StartOfDocumentCommand
PAGE DOWNMoves the cursor by scrolling the document view down by one screen.NextScreenCommand
CTRL+PAGE DOWNMoves the cursor to the top of the next page.NextPageCommand
PAGE UPMove the cursor by scrolling the document view up by one screen.PreviousScreenCommand
CTRL+PAGE UPMoves the cursor to the top of the previous page.PreviousPageCommand

Select Document Content

ShortcutDescriptionCommand
CTRL+A
CTRL+CLEAR
CTRL+NUM 5Selects all content.SelectAllCommand
SHIFT+RIGHT ARROWSelects one character to the right.ExtendNextCharacterCommand
CTRL+SHIFT+RIGHT ARROWSelects one word to the right.ExtendNextWordCommand
SHIFT+LEFT ARROWSelects one character to the left.ExtendPreviousCharacterCommand
CTRL+SHIFT+LEFT ARROWSelects one word to the left.ExtendPreviousWordCommand
SHIFT+DOWN ARROWExtends the selection one line down.ExtendNextLineCommand
CTRL+SHIFT+DOWN ARROWSelects content from the current position to the paragraph end.ExtendNextParagraphCommand
SHIFT+UP ARROWExtends the selection one line up.ExtendPreviousLineCommand
CTRL+SHIFT+UP ARROWSelects content from the current position to the paragraph start.ExtendPreviousParagraphCommand
SHIFT+ENDSelects content from the current position to the line end.ExtendEndOfLineCommand
CTRL+SHIFT+ENDSelects content from the current position to the document end.ExtendEndOfDocumentCommand
SHIFT+HOMESelects content from the current position to the line start.ExtendStartOfLineCommand
CTRL+SHIFT+HOMESelects content from the current position to the document start.ExtendStartOfDocumentCommand
SHIFT+PAGE DOWNSelects content from the current position to the bottom of the screen.ExtendNextScreenCommand
CTRL+SHIFT+PAGE DOWNSelects content from the current position to the bottom of the page.ExtendNextPageCommand
SHIFT+PAGE UPSelects content from the current position to the top of the screen.ExtendPreviousScreenCommand
CTRL+SHIFT+PAGE UPSelects content from the current position to the top of the page.ExtendPreviousPageCommand

Edit Document Content

ShortcutDescriptionCommand
INSERTTurns overtype on and off.ToggleOvertypeCommand
BACKSPACEDeletes one character to the left.BackSpaceKeyCommand
CTRL+BACKSPACEDeletes one word to the left.DeleteWordBackCommand
DELETEDeletes one character to the right.DeleteCommand
CTRL+DELETEDeletes one word to the right.DeleteWordCommand
CTRL+Z
ALT+BACKSPACEUndo the previous action.UndoCommand
CTRL+Y
ALT+SHIFT+BACKSPACERedo the previous action.RedoCommand

Clipboard Operations

ShortcutDescriptionCommand
CTRL+X
SHIFT+DELETECuts the selected content to the clipboard.CutSelectionCommand
CTRL+C
CTRL+INSERTCopies the selected content to the clipboard.CopySelectionCommand
CTRL+V
SHIFT+INSERTPastes the selected content to the clipboard.PasteSelectionCommand
CTRL+ALT+VShows the Paste Special dialog.ShowPasteSpecialFormCommand

Align and Format Paragraphs

ShortcutDescriptionCommand
CTRL+ECenters the paragraph.ToggleParagraphAlignmentCenterCommand
CTRL+JJustifies the paragraph.ToggleParagraphAlignmentJustifyCommand
CTRL+LAligns the paragraph to the left.ToggleParagraphAlignmentLeftCommand
CTRL+RAligns the paragraph to the right.ToggleParagraphAlignmentRightCommand
CTRL+1Applies single spacing to the paragraph.SetSingleParagraphSpacingCommand
CTRL+2Applies double spacing to the paragraph.SetDoubleParagraphSpacingCommand
CTRL+5Applies the 1.5-line spacing to the paragraph.SetSesquialteralParagraphSpacingCommand
SHIFT+TABDecreases the indent by the size of one tab, or inserts the tab.ShiftTabKeyCommand
TABIncreases the indent by the size of one tab, or inserts the tab.TabKeyCommand

Format Characters

ShortcutDescriptionCommand
CTRL+DDisplays the Font dialog.ShowFontFormCommand
CTRL+OEMCLOSEBRACKETS (])Increases the font size by 1 point.IncrementFontSizeCommand
CTRL+OEMOPENBRACKETS ([)Decreases the font size by 1 point.DecrementFontSizeCommand
CTRL+SHIFT+OEMPERIOD (>)Increases the font size.IncreaseFontSizeCommand
CTRL+SHIFT+OEMCOMMA (<)Decreases the font size.DecreaseFontSizeCommand
CTRL+SHIFT+HHides the selected text.ToggleHiddenTextCommand
CTRL+BApplies bold formatting.ToggleFontBoldCommand
CTRL+UApplies underline formatting.ToggleFontUnderlineCommand
CTRL+IApplies italics formatting.ToggleFontItalicCommand
CTRL+SHIFT+DApplies double-underline formatting.ToggleFontDoubleUnderlineCommand
CTRL+SPACERemoves manual character formatting.ClearFormattingCommand
CTRL+OEMPLUS (=)Applies subscript formatting.ToggleFontSubscriptCommand
CTRL+SHIFT+OEMPLUS (=)Applies superscript formatting.ToggleFontSuperscriptCommand
SHIFT+F4Switches the text between upper case, lower case, and title case.ChangeCaseCommand
CTRL+KOpens the Hyperlink dialog.ShowHyperlinkFormCommand

Insert Special Characters

ShortcutDescriptionCommand
CTRL+SHIFT+8Shows or hides the hidden formatting symbols.ToggleShowWhitespaceCommand
ENTERInserts a paragraph.InsertParagraphCommand
SHIFT+ENTERInserts a line break.InsertLineBreakCommand
CTRL+ENTERInserts a page break.InsertPageBreakCommand
CTRL+SHIFT+ENTERInserts a column break.InsertColumnBreakCommand
CTRL+SubtractInserts an en dash (–).InsertEnDashCommand
CTRL+ALT+SubtractInserts an em dash (–).InsertEmDashCommand
CTRL+ALT+TInsert a trademark symbol (™).InsertTrademarkSymbolCommand
CTRL+ALT+RInserts a registered trademark symbol (®).InsertRegisteredTrademarkSymbolCommand
CTRL+ALT+CInserts a copyright symbol (©).InsertCopyrightSymbolCommand
CTRL+ALT+OEMPERIOD (<)Inserts an ellipsis (…)InsertEllipsisCommand
CTRL+-Insert an optional hyphen.InsertHyphenCommand
CTRL+SHIFT+-Inserts a non-breaking hyphen.InsertNonBreakingHyphenCommand
Ctrl+ShIFT+SPACEInserts a non-breaking space.InsertNonBreakingSpaceCommand
Ctrl+TABInserts a tab character.InsertTabCommand.

Work With Fields

ShortcutDescriptionCommand
CTRL+F9Inserts an empty field.CreateFieldCommand
F9Updates the selected field.UpdateFieldsCommand
ALT+F9Switches between all field codes and their results.ToggleAllFieldsCommand
CTRL+F11Locks a field.LockFieldCommand
CTRL+SHIFT+F11Unlocks a field.UnlockFieldCommand
CTRL+SHIFT+F9Replaces a field with its value (unlinks a field).UnlinkFieldsCommand

Outline a Document

ShortcutDescriptionCommand
ALT+SHIFT+LEFT ARROWPromotes a paragraph.DecrementParagraphOutlineLevelCommand
ALT+SHIFT+RIGHT ARROWDemotes a paragraph.IncrementParagraphOutlineLevelCommand

Find and Replace

ShortcutDescriptionCommand
CTRL+FDisplays the Find dialog.FindCommand
CTRL+HDisplays the Replace dialog.ReplaceCommand
F3Moves to the next found entry.FindNextCommand
SHIFT+F3Moves to the previous found entry.FindPrevCommand

List Operations

ShortcutDescriptionCommand
ALT+IIncrements paragraph numeration in a numbering list.IncrementNumerationFromParagraphCommand
CTRL+ALT+IDecrements paragraph numeration in a numbering list.DecrementNumerationFromParagraphCommand

Review a Document

ShortcutDescriptionCommand
CTRL + SHIFT + ETurns Track Changes on or off.ToggleTrackChangesCommand

See Also

DevExpress.XtraRichEdit.Commands