Shortcuts

Many of the shortcuts are configurable by way of the Settings menu. By default KatePart honors the following shortcuts:

Ins

Toggle between Insert and Overwrite mode. When in insert mode the editor will add any typed characters to the text while pushing along any data to the right of the text cursor. Overwrite mode causes the entry of each character to eliminate the character immediately to the right of the text cursor.

Left

Move the cursor one character to the left.

Right

Move the cursor one character to the right.

Up

Move the cursor up one line.

Down

Move the cursor down one line.

Ctrl+E

Go to previous edit location in document.

Ctrl+Shift+E

Go to next edit location in document.

Alt+Shift+Up

Move cursor to previous matching indent.

Alt+Shift+Down

Move cursor to previous matching indent.

Ctrl+6

Move to Matching Bracket.

PgUp

Move the cursor up one page.

PgDn

Move the cursor down one page.

Home

Move the cursor to the beginning of the line.

End

Move the cursor to the end of the line.

Ctrl+Home

Move to Beginning of Document.

Ctrl+End

Move to End of Document.

Ctrl+Up

Scroll Line Up.

Ctrl+Down

Scroll Line Down.

Ctrl+Right

Move Word Right.

Ctrl+Left

Move Word Left.

Ctrl+Shift+Up

Move Lines Up.

Ctrl+Shift+Down

Move Lines Down.

Ctrl+.

Duplicate Selected Lines Down.

Ctrl+B

Set a Bookmark.

Alt+PgUp

Previous Bookmark.

Alt+PgDn

Next Bookmark.

Del

Delete the character to the right of the cursor (or any selected text).

Backspace

Delete the character to the left of the cursor.

Ctrl+Del

Delete Right Word.

Ctrl+Backspace

Delete Left Word.

Ctrl+K

Delete Line.

Shift+Enter

Insert newline including leading characters of the current line which are not letters or numbers. It is useful e.g. to write comments in the code: At the end of the line // some text press this shortcut and the next line starts already with // . So you do not have to enter the comment characters at the beginning of each new line with comments.

Ctrl+Shift+Enter

Create a new line below current line.

Ctrl+Alt+Enter

Create a new line above current line.

Shift+Left

Mark text one character to the left.

Shift+Right

Mark text one character to the right.

Ctrl+F

Find.

F3

Find Next.

Shift+F3

Find Previous.

Ctrl+H

Find Selected.

Ctrl+Shift+H

Find Selected Backwards.

Ctrl+Shift+Right

Select Word Right.

Ctrl+Shift+Left

Select Word Left.

Shift+Home

Select to Beginning of Line.

Shift+End

Select to End of Line.

Shift+Up

Select to Previous Line.

Shift+Down

Select to Next Line.

Ctrl+Shift+6

Select to Matching Bracket.

Ctrl+Shift+PgUp

Select to Top of View.

Ctrl+Shift+PgDn

Select to Bottom of View.

Shift+PgUp

Select Page Up.

Shift+PgDn

Select Page Down.

Ctrl+Shift+Home

Select to Beginning of Document.

Ctrl+Shift+End

Select to End of Document.

Ctrl+Home

Select All.

Ctrl+Shift+A

Deselect.

Ctrl+Shift+B

Block Selection Mode.

Ctrl+C / Ctrl+Ins

Copy the marked text to the clipboard.

Ctrl+D

Comment.

Ctrl+Shift+D

Uncomment.

Ctrl+G

Go to line...

Ctrl+I

Indent selection.

Ctrl+Shift+I

Unindent selection.

Ctrl+J

Join Lines.

Ctrl+P

Print.

Ctrl+R

Replace.

Ctrl+S

Invokes the Save command.

Ctrl+Shift+S

Save As.

Ctrl+U

Uppercase.

Ctrl+Shift+U

Lowercase.

Ctrl+Alt+U

Capitalize.

Ctrl+V / Shift+Ins

Paste the clipboard text into line edit.

Ctrl+X / Shift+Ins

Delete the marked text and copy it to the clipboard.

Ctrl+Z

Undo.

Ctrl+Shift+Z

Redo.

Ctrl+-

Shrink Font.

Ctrl++Ctrl+=

Enlarge Font.

Ctrl+Shift+-

Fold Toplevel Nodes.

Ctrl+Shift++

Unfold Toplevel Nodes.

Ctrl+Space

Invoke Code Completion.

F5

Reload.

F6

Show/Hide Icon Border.

F7

Switch to Command Line.

F9

Show/Hide Folding Markers.

F10

Dynamic Word Wrap.

F11

Show/Hide Line Numbers.

Ctrl+T

Transpose Characters.

Ctrl+Shift+O

Automatic Spell Checking.

Ctrl+Shift+V

Switch to Next Input Mode.

Ctrl+8

Reuse Word Above.

Ctrl+9

Reuse Word Below.

Ctrl+Alt+#

Expand Abbreviation.

Ctrl+Alt+Up

Add a cursor above current cursor.

Ctrl+Alt+Down

Add a cursor below current cursor.

Shift+Alt+I

Create a cursor at the end of each line in selection.

Alt+J

Find next occurrence of the word under cursor and select it.

Ctrl+Alt+Shift+J

Find all occurrences of the word under cursor and select them.