Keyboard Shortcuts

Programmer's Notepad 2

Keyboard Shortcuts

This help describes some of the default keyboard shortcuts used by PN2.

The Escape Key

The escape key can often be used to get you out of dialogs - it generally represents the pressing of the cancel button in these cases. The escape button can also be used to hide any output, find in files or find bar windows that are visible. So if you run a compile which shows you some output, and then you don't want to see the output window any more then just press escape until it goes away!

Window Navigation

To go to the next window, you can use either Ctrl-Tab or Ctrl-F6. Depending on your options, this will either navigate through documents in Windows' own recent window order, or will use a Visual-Studio window stack system. Note that you can hold down the Shift key with either of these combinations to traverse in the opposite direction.

Output Window

There are two types of output window (from 0.4 onwards). The global output window (dockable) can be toggled with F8, and individual output windows can be toggled with Shift-F8.

Indent Unindent

Select a block of text over a line and use the Tab key to indent (by either tab characters or spaces depending on your settings). Use Shift-Tab to unindent.

More Shortcuts

Shortcut Command
Alt-Enter Show Document Properties
Alt-G Jump To
Ctrl-/ Show Find Bar
Ctrl-Tab Next Window
Ctrl-Shift-Tab Previous Window
Ctrl-A Select All
Ctrl-C Copy
Ctrl-D Duplicate Line
Ctrl-F Find Dialog
Ctrl-G Goto
Ctrl-H Replace Dialog
Ctrl-L Cut Line
Ctrl-N New File
Ctrl-O Open File
Ctrl-P Print
Ctrl-R Replace Dialog
Ctrl-S Save
Ctrl-T Transpose Lines
Ctrl-U Lowercase
Ctrl-V Paste
Ctrl-W Close Window
Ctrl-X Cut
Ctrl-Y Redo
Ctrl-Z Undo
Ctrl-Shift-C Clipboard Swap
Ctrl-Shift-F Find in Files Dialog
Ctrl-Shift-L Delete Line
Ctrl-Shift-S Save All
Ctrl-Shift-T Copy Line
Ctrl-Shift-U Uppercase
Shift-Delete Cut
Shift-Insert Insert
Ctrl-Insert Copy
F2 Next Bookmark
Ctrl-F2 Set Bookmark
F3 Find Next
Ctrl-F4 Close Window
Ctrl-F6 Next Window
Ctrl-Shift-F6 Previous Window
F8 Toggle Output Window
Shift-F8 Toggle Individual Output Window