New to Telerik UI for WinFormsStart a free 30-day trial

Keyboard Support

Updated over 6 months ago

The keyboard combinations supported by the RadSyntaxEditor are listed in the table below.

Hot Key(s)Action
Left arrowMove to previous character
Right arrowMove to next character
Left arrow + CtrlMove to previous word
Right arrow + CtrlMove to next word
Up arrowMove line up
Down arrowMove line down
HomeMove to home
EndMove to line end
Page UpMove page up
Page DownMove page down
Ctrl + HomeMove to start of document
Ctrl + EndMove to end of document
Ctrl + ASelect all
Ctrl + CCopy
Ctrl + InsertCopy
Ctrl + SpaceShow code completion prompt
Ctrl + FOpen the find dialog
EscapeClose the find dialog
BackspaceDelete the previous character
DeleteDelete the next character
Ctrl + BackspaceDelete the previous word
Ctrl + DeleteDelete the next word
TabIndent
Shift + TabUnindent
Ctrl + ZUndo
Ctrl + YRedo
Ctrl + XCut
Shift + DeleteCut
Ctrl + VPaste
Shift + InsertPaste
InsertToggle insert

If you need to handle a key combination which is not listed above, you can do so by handling the PreviewSyntaxEditorKeyDown event.

C#
private void radSyntaxEditor1_PreviewSyntaxEditorKeyDown(object sender, PreviewSyntaxEditorKeyEventArgs e)
{
    if (e.Key == Keys.S && Keyboard.Modifiers == Keys.Control)
    {
        e.OriginalArgs.Handled = true;
    }
}     
Not finding the help you need?
Contact Support