Keyboard Shortcuts

The CodeSmith Generator Template Editor supports the following keyboard shortcuts.

Tip

For Generator's shortcuts inside Visual Studio, see Visual Studio integration.

Editing

Shortcut Command
Ctrl+Enter Insert blank line above current line
Ctrl+Del Delete next word
Ctrl+Backspace Delete previous word
Ctrl+C, Ctrl+Ins Copy
Ctrl+X, Shift+Del Cut
Ctrl+V, Shift+Ins Paste
Ctrl+Z Undo
Ctrl+Y, Ctrl+Shift+Z Redo
Tab Indent line
Shift+Tab Outdent line
Ctrl+Space Show the statement completion list
Ctrl+M Collapse or expand the current outline block
Insert Toggle overwrite mode
Ctrl+U Make lowercase
Ctrl+Shift+U Make uppercase

Moving around

Shortcut Command
Ctrl+Down Scroll down
Ctrl+Up Scroll up
Ctrl+Left Word left
Ctrl+Right Word right
Ctrl+PgUp Move to top of window
Ctrl+PgDn Move to bottom of window
Ctrl+] Move to matching bracket
Ctrl+G Go to line
F12 Go To Definition
Ctrl+F, Ctrl+H Find and replace
Ctrl+I Incremental search forward
Ctrl+Shift+I Incremental search backward

Selecting

Shortcut Command
Shift+Down Select down
Shift+Up Select up
Shift+Right Select right
Shift+Left Select left
Ctrl+Shift+Right Select next word
Ctrl+Shift+Left Select previous word
Shift+Home Select to start of line
Shift+End Select to end of line
Ctrl+Shift+Home Select to start of document
Ctrl+Shift+End Select to end of document
Shift+PgUp Select page up
Shift+PgDn Select page down
Ctrl+Shift+PgUp Select to top of window
Ctrl+Shift+PgDn Select to bottom of window
Ctrl+A Select all
Ctrl+Shift+] Select to matching bracket

Bookmarks

Shortcut Command
Ctrl+Shift+K Toggle bookmark
Ctrl+Shift+N Next bookmark
Ctrl+Shift+P Previous bookmark
Ctrl+Shift+L Clear bookmarks

Files

Shortcut Command
Ctrl+O Open file
Ctrl+S Save file
Ctrl+Shift+S Save all files
Ctrl+F4 Close file
Ctrl+P Print

Windows

Shortcut Command
F7 View code
F8 View output
Ctrl+Shift+X View Template Explorer
Ctrl+Shift+D View Schema Explorer
F4 View Properties Window
Ctrl+Shift+O View Output Window
Ctrl+Shift+R Show Web browser
F1 Help

Building and running

Shortcut Command
F6, Ctrl+Shift+B Build
F5 Run
F9 Copy output
F10 Save output