Table of Contents

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.

If you edit many files at the same time, their tabs may not fit the window width. In such a case, you can use the two little arrows (next to the close document button) to scroll through them.

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

ShortcutCommand
Alt-EnterShow Document Properties
Alt-GJump To (tags)
Ctrl-/Show Find Bar
Ctrl-TabNext Window
Ctrl-Shift-TabPrevious Window
Ctrl-ASelect All
Ctrl-CCopy
Ctrl-DDuplicate Line
Ctrl-FFind Dialog
Ctrl-GGoto
Ctrl-HReplace Dialog
Ctrl-LCut Line
Ctrl-NNew File
Ctrl-OOpen File
Ctrl-PPrint
Ctrl-RReplace Dialog
Ctrl-SSave
Ctrl-TTranspose Lines
Ctrl-ULowercase
Ctrl-VPaste
Ctrl-WClose Window
Ctrl-XCut
Ctrl-YRedo
Ctrl-ZUndo
Ctrl-Shift-CClipboard Swap
Ctrl-Shift-FFind in Files Dialog
Ctrl-Shift-HSwitch to (or Open) Alternate file
Ctrl-Shift-LDelete Line
Ctrl-Shift-SSave All
Ctrl-Shift-TCopy Line
Ctrl-Shift-UUppercase
Shift-DeleteCut
Shift-InsertInsert
Ctrl-InsertCopy
F2Next Bookmark
Ctrl-F2Set Bookmark
F3Find Next
Ctrl-F4Close Window
Ctrl-F6Next Window
Ctrl-Shift-F6Previous Window
F8Toggle Output Window
Shift-F8Toggle Individual Output Window

ASCII Control Characters

Most ASCII control characters can be inserted with Ctrl+Shift plus the corresponding letter.

Examples:

Control characterCaret notationKey Sequence
NUL
^@
Ctrl-Shift-2
EOT
^D
Ctrl-Shift-D
BEL
^G
Ctrl-Shift-G
TAB
^I
Ctrl-Shift-I
CR
^M
Ctrl-Shift-M

Wikipedia has a [http://en.wikipedia.org/wiki/ASCII#ASCII_control_characters list of ASCII control characters] and the corresponding caret notations.