Navigation
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 ShortcutCommand Alt-EnterShow Document Properties Alt-GJump To 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-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
Bookmarks PN2 supports two types of bookmarking. The first of these is "simple" bookmarks. These are the type found in Visual Studio, where you can set as many bookmarks as you like, and one key jumps from one to the next: To set a simple bookmark: Ctrl-F2 To jump to the next simple bookmark: F2 PN2 also supports numbered bookmarks from 0 to 9. These are set and reached by pressing a key combination followed by the number of the bookmark: To set a numbered bookmark: Ctrl-K, x To jump to a numbered bookmark: Ctrl-Q, x where x is the number of the bookmark you wish to use. Bookmarks are shown in the margin of the text editor, the picture below shows both a simple bookmark and two numbered ones: