Notepad3

May 18, 2026 · View on GitHub

A complete reference for the shortcuts wired into Notepad3 (src/Notepad3.rc accelerator table). The in-menu hint after each command is the live source of truth — if a future build moves a binding, the menu shows the current key first.

Looking for a different keyboard reference?


Conventions

  • Modifier order in this document: CtrlShiftAlt. Notepad3 itself accepts any order.
  • Key spellings: are the cursor arrows. + and - mean the regular keyboard keys; numeric-keypad equivalents are noted as Num+, Num-, Num0, etc., where they have a separate binding.
  • NP2 in the Notes column means "carried over unchanged from Notepad2"; (orig-NP2: …) means "this slot held a different action in Notepad2 — see the FAQ migration table for the full list".
  • Customising shortcuts is not supported in Notepad3 (the table is compiled in). See the FAQ for workarounds.

File

File operations

ShortcutActionNotes
Ctrl+NSmart New — clears the current document by default, but if the selection / token at caret resolves to an existing file, loads it into the current window instead; if it resolves to a directory, opens the file-open dialog rooted there. Path detection matches Open File from Selection (see paths/FilePathHandling.md).NP2+
Ctrl+F4Smart New (alias for Ctrl+N)Inherits the same smart selection-aware behavior. (No MDI in Notepad3.)
Ctrl+OOpen file…NP2
F5Reload current file from diskNP2
Ctrl+SSaveNP2
F6Save as…NP2
Ctrl+F6Save a copy…NP2
Ctrl+Alt+F6Save preserving original modification time(N3)
Ctrl+PPrint…NP2
Ctrl+MRun MiniPath file browserNP2
Ctrl+Alt+HOpen recent file (history)…(orig-NP2: Alt+H)
Alt+F4Exit Notepad3Standard Windows
EscCancel auto-completion popup or active selection. If neither is active, optionally minimise / exit (configurable).NP2
Shift+EscSave current file and exit Notepad3NP2

Path to clipboard

ShortcutActionNotes
Ctrl+F9Copy filename only to clipboardThe IDM constant is named INSERT_FILENAME for historical reasons, but the action copies — it does not insert.
Ctrl+Shift+F9Copy full path (directory + filename) to clipboardSame naming caveat.
Shift+F9Copy pathname to clipboard (legacy binding)Identical to Ctrl+Shift+F9 for saved files. For untitled documents, this one copies the localised "Untitled" placeholder.

Launch / external tools

ShortcutActionNotes
Ctrl+Shift+FSearch in files (grepWin)(orig-NP2: "Recode as default encoding")
Alt+NSmart New Window — opens a new empty Notepad3 window by default, but if the selection / token at caret resolves to an existing file, spawns the new window with that file loaded (jumping to the line spec if any); if it resolves to a directory, the new window opens its file-open dialog there. Same path-detection rule as Open File from Selection.NP2+
Alt+Shift+NDuplicate current document into a new window (only when Single File Instance is off)(N3)
Ctrl+LLaunch document with its associated applicationNP2
Alt+L"Open with…" external programNP2
Ctrl+RRun command…NP2
Ctrl+Shift+1Web template 1 (configurable URL — pass selection / file path)(N3)
Ctrl+Shift+2Web template 2(N3)

Encoding

ShortcutActionNotes
F8Recode (re-decode) — pick the source encoding to reload asNP2. Internally loaded text is kept as UTF-8; this changes how the bytes were interpreted.
F9Open the Select Current Encoding dialogNP2
Shift+F8Reload as UTF-8NP2
Ctrl+Shift+F8Reload an ASCII file as UTF-8NP2
Alt+F8Reload without parsing encoding tags or file variables(N3) — useful when mode: auto etc. mis-triggers a lexer
Ctrl+Shift+ARecode as system ANSINP2
Ctrl+Shift+ORecode as system OEMNP2
Ctrl+Shift+F10Recode as GB18030(N3)

Favorites

ShortcutActionNotes
Alt+IOpen favorites…NP2
Alt+KAdd current file to favoritesNP2
Alt+F9Manage favorites…NP2

Edit

Basic clipboard / undo

ShortcutActionNotes
Ctrl+ZUndoNP2
Alt+BackspaceUndo (alt)NP2
Ctrl+Shift+YUndo (alt)NP2
Ctrl+YRedoNP2
Ctrl+Shift+ZRedo (alt)NP2
Ctrl+XCut selection — or cut current line if no selection (Visual-Studio style)(orig-NP2: cut only when something selected)
Shift+DelCut (alt)NP2
Ctrl+CCopy selection — or copy current line if no selection(orig-NP2: copy only when something selected)
Alt+CCopy entire documentNP2
Ctrl+ECopy add (append selection to clipboard)NP2
Ctrl+VPasteNP2
Shift+InsPaste (alt)NP2
Ctrl+KSwap clipboard with selectionNP2
DelClear selectionNP2
Ctrl+ASelect allNP2
InsertToggle Insert / Overtype modeStandard Scintilla; not advertised by the menu

Words

ShortcutActionNotes
Ctrl+Alt+EnterComplete word (autocomplete from buffer)(N3)
Ctrl+←Move caret one word leftNP2
Ctrl+→Move caret one word rightNP2
Ctrl+BackspaceDelete word before the caretNP2
Ctrl+DelDelete word after the caretNP2

Lines

ShortcutActionNotes
Alt+↑Move current line / selected block upNP2
Alt+↓Move current line / selected block downNP2
Ctrl+Shift+XCut whole line(s) — even when only part is selectedNP2
Ctrl+Shift+CCopy whole line(s) — even when only part is selectedNP2
Ctrl+DDuplicate selection — or current line if no selectionNP2
Alt+DTranspose lines (swap current with the one above)NP2
Ctrl+Shift+DDelete current lineNP2
Ctrl+Shift+BackspaceDelete from caret to start of lineNP2
Ctrl+Shift+DelDelete from caret to end of lineNP2
Ctrl+Shift+WColumn wrap — break long lines at a columnNP2
Ctrl+ISplit lines at spaces (rebreak text)NP2
Ctrl+JJoin lines (single-space joiner)NP2
Ctrl+Alt+JFuse lines (no space inserted)(N3)
Ctrl+Shift+JJoin lines, preserve paragraph breaksNP2
Ctrl+Alt+DUnite duplicate lines (remove duplicates within selection)(N3)
Alt+YMerge consecutive empty lines into oneNP2
Ctrl+Alt+YMerge consecutive blank-or-whitespace-only lines(N3)
Alt+RRemove all empty lines from selectionNP2
Ctrl+Alt+BRemove all blank-or-whitespace-only lines(N3)

Block & indent

ShortcutActionNotes
TabIndent selected block — or accept autocompletion when its popup is open, or insert a tab when caret is in plain textNP2
Shift+TabUnindent selected blockNP2
Ctrl+TabInsert a literal tab character (bypasses indent reformat)NP2
Alt+BPad lines with trailing spaces to longest-line widthNP2
Alt+ZStrip first character of each lineNP2
Alt+UStrip last character of each lineNP2
Alt+WStrip trailing blanksNP2
Ctrl+Alt+PCompress runs of blanks to single spaceNP2
Alt+MModify lines (prefix / suffix dialog)…NP2
Alt+JAlign lines…NP2
Alt+OSort lines…NP2
Ctrl+,Jump to selection startNP2
Ctrl+.Jump to selection endNP2

Comments

ShortcutActionNotes
Ctrl+QToggle line commentNP2
Ctrl+/ (or Ctrl+Num/)Toggle line comment (alternative binding)(N3)
Ctrl+Alt+QAdd line comment (without toggling)(N3)
Ctrl+Shift+Alt+QRemove line comment (without toggling)(N3)
Alt+Shift+QBlock-edit line comments (multi-caret edit at comment start of each line)(N3)
Ctrl+Shift+QToggle stream / block commentNP2
Ctrl+Shift+/ (or Ctrl+Shift+Num/)Toggle stream comment (alternative binding)(N3)

Enclose selection

ShortcutAction
Ctrl+1Enclose within '' (single quotes)
Ctrl+2Enclose within "" (double quotes)
Ctrl+3Enclose within ()
Ctrl+4Enclose within []
Ctrl+5Enclose within {}
Ctrl+6Enclose within `` (backticks)
Alt+QEnclose with custom strings (before / after dialog)…

Convert (case, encoding, hex)

ShortcutActionNotes
Ctrl+Shift+USelection → UPPERCASENP2
Ctrl+USelection → lowercaseNP2
Ctrl+Alt+UInvert caseNP2
Ctrl+Alt+ITitle CaseNP2
Ctrl+Alt+OSentence caseNP2
Ctrl+Shift+TConvert spaces to tabs (everywhere in selection)NP2
Ctrl+Shift+SConvert tabs to spaces (everywhere in selection)NP2
Ctrl+Alt+TConvert indent spaces to tabs onlyNP2
Ctrl+Alt+SConvert indent tabs to spaces onlyNP2
Ctrl+Shift+EURL-encode selectionNP2
Ctrl+Shift+RURL-decode selectionNP2
Ctrl+F10File-system path → URL (e.g. C:\pathfile:///C:/path)(N3)
Alt+F10URL → file-system path(N3)
Ctrl+Alt+XChar → hex codeNP2
Ctrl+Alt+CHex code → charNP2
Ctrl+Alt+EEscape C special chars (\n etc.)NP2
Ctrl+Alt+RUnescape C special charsNP2

Insert

ShortcutActionNotes
Ctrl+EnterInsert new line above current line(orig-NP2: new line with toggled auto-indent)
Ctrl+Shift+EnterNew line with toggled auto-indent option(orig-NP2: Ctrl+Enter)
Alt+XInsert HTML / XML tag…NP2
Ctrl+F8Insert encoding identifier commentNP2
Ctrl+F5Insert short date/timeNP2
Ctrl+Shift+F5Insert long date/timeNP2
Shift+F5Update existing timestamps in document (regex-driven)NP2. Pattern is [Settings2] TimeStampRegEx.

Numbers

ShortcutActionNotes
Ctrl+Alt++ (or Ctrl+Alt+Num+)Increase the number under the caretNP2
Ctrl+Alt+- (or Ctrl+Alt+Num-)Decrease the number under the caretNP2

Find, Replace, Goto

ShortcutActionNotes
Ctrl+FFind…NP2
Alt+F3Save the current find text as the persistent defaultNP2
F3Find nextNP2
Shift+F3Find previousNP2
Ctrl+F3Find next occurrence of the current selectionNP2
Ctrl+Shift+F3Find previous occurrence of the current selectionNP2
Ctrl+HReplace…NP2
F4Replace nextNP2
Ctrl+GGoto line / column dialogNP2
Ctrl+Shift+FSearch in files (grepWin)(orig-NP2: "Recode as default")
Ctrl+BFind matching brace — if the caret is at a brace ()[]{} jump to its match; if not at a brace, jump to the nearest enclosing opening brace. If a brace-block selection is active, the caret toggles between the two brace endpoints while preserving the selection. Shows a calltip if no match or no enclosing brace exists.NP2+
Ctrl+Shift+BSelect to matching brace — selects the brace pair enclosing the caret (inclusive of both braces). Repeated presses expand the selection outward one nesting level at a time. Pressing when the caret is at the closing brace of the current selection pivots the caret to the opening brace (same selection, reversed direction); pressing again when at the opening brace expands to the next outer pair. Shows a calltip if no match or no enclosing brace exists.NP2+
Ctrl+Alt+F2Expand selection to next match(orig-NP2: F2)
Ctrl+Alt+Shift+F2Expand selection to previous match(orig-NP2: Shift+F2)

Inside the Find / Replace dialog

A dedicated accelerator table applies while the modeless Find/Replace window has focus:

ShortcutAction
Ctrl+FSwitch to Find tab
Ctrl+HSwitch to Replace tab
F3Find next (without leaving the dialog)
Shift+F3Find previous
Alt+F3Save current pattern as default
F4Replace next
Ctrl+SSave dialog window position
Ctrl+RReset dialog window position

Bookmarks

ShortcutActionNotes
F2Goto next bookmark(orig-NP2: expand selection to next match — moved to Ctrl+Alt+F2)
Shift+F2Goto previous bookmark(orig-NP2: expand selection to previous match)
Ctrl+F2Toggle bookmark on current line(N3)
Alt+F2Clear all bookmarks(N3)

Selection

ShortcutActionNotes
Ctrl+SpaceSelect word at caret — or whole line if word already selectedNP2
Ctrl+Shift+SpaceMulti-select all matches of word at caret(N3)
Alt+Shift+ArrowsRectangular selectionNP2
Alt+Left-mouse-dragRectangular selectionNP2
Ctrl+Shift+.Copy GUID to clipboard(N3). The IDM is named INSERT_GUID for historical reasons but the action copies.

Mouse

ActionEffect
Ctrl-click on a hyperlink / URL hotspotOpen in default browser
Alt-click on a hyperlinkLoad target as a file in Notepad3
Ctrl-click on a colour swatch (when colour-hotspot highlighting is on)Open the colour picker
Ctrl-mouse-wheelZoom in / out

View

Visual aids

ShortcutActionNotes
Ctrl+WToggle word wrapNP2
Ctrl+Alt+LToggle long-line markerNP2
Ctrl+Shift+GToggle indentation guidesNP2
Ctrl+Shift+7Toggle wrap symbolsNP2
Ctrl+Shift+8Toggle whitespace markersNP2
Ctrl+Shift+9Toggle line-ending markersNP2
Ctrl+Alt+WToggle hyperlink hotspots(N3)
Ctrl+Shift+VToggle visual brace matchingNP2
Ctrl+Shift+IHighlight current lineNP2
Ctrl+Shift+NToggle line numbersNP2
Ctrl+Shift+MToggle bookmark marginNP2

Mark occurrences

ShortcutAction
Alt+AToggle "mark all occurrences" of current word

Folding

ShortcutAction
Ctrl+Alt+FToggle all folds (collapse / expand all)
Alt++Jump to next fold point
Alt+-Jump to previous fold point
Alt+←Collapse current fold
Alt+→Expand current fold

Display navigation

ShortcutActionNotes
Ctrl+Alt+VFocused View — show only lines matching word/selection(N3)
Ctrl+PgUp / Ctrl+PgDnGoto previous / next block (paragraph or fold)NP2
Ctrl+Shift+PgUp / Ctrl+Shift+PgDnSelect to previous / next blockNP2
Alt+PageUpParagraph navigation up(N3)
Alt+PageDownParagraph navigation down(N3)
Ctrl+↑Scroll one line up (without moving caret)NP2
Ctrl+↓Scroll one line down (without moving caret)NP2

Zoom

ShortcutAction
Ctrl++ (or Ctrl+Num+)Zoom in
Ctrl+- (or Ctrl+Num-)Zoom out
Ctrl+0 (or Ctrl+Num0)Reset zoom to 100 %

Window position

ShortcutActionNotes
Ctrl+Shift+KCopy current window position to clipboard as /p x,y,cx,cy switchNP2
Ctrl+Shift+PSnap window to default position on current monitorNP2
Ctrl+F11Snap window to internal initial-default position(N3)
F11Toggle full-area window (full-screen)(N3)

Appearance

ShortcutActionNotes
F12Select syntax scheme for current fileNP2
Ctrl+F12Customize schemes (colours, fonts, …)NP2
Shift+F12Switch to the secondary common base schemeNP2
Shift+F11Force Default Text (no syntax) on current file(N3)
Alt+F12Change the global default fontNP2
Ctrl+Alt+F12Change the active scheme's default font(N3)

Settings

ShortcutActionNotes
Ctrl+TTab settings (tab width, indent width, tabs↔spaces)…NP2
Ctrl+Shift+HToggle automatic close of HTML / XML tagsNP2
Ctrl+Alt+AToggle accelerated word navigation (alternate word separators)(N3)
Alt+F5File-change notification settings…NP2

Window-level toggles

ShortcutActionNotes
Ctrl+Shift+LToggle "reuse window" for next launchNP2
Alt+TToggle "always on top"NP2
Alt+GToggle transparent modeNP2
Ctrl+9Display selected text excerpt in window titleNP2

Configuration file

ShortcutAction
F7Save settings now (write Notepad3.ini)
Ctrl+F7Open Notepad3.ini in the editor

Help

ShortcutAction
F1Open online documentation
Shift+F1About dialog

Cheatsheet — function keys at a glance

A compact summary of the function-key family (most frequent collisions):

KeyPlainCtrlShiftAltCtrl+ShiftCtrl+AltCtrl+Shift+Alt
F1Online docsAbout
F2Goto next bookmarkToggle bookmarkGoto prev bookmarkClear all bookmarksExpand sel to next matchExpand sel to prev match
F3Find nextFind next selectionFind previousSave find textFind prev selection
F4Replace nextNew (clear) docExit
F5Reload fileInsert short dateUpdate timestampsFile-change notifyInsert long date
F6Save asSave copySave preserving mtime
F7Save settings nowOpen INI
F8Recode (encoding)Insert encoding IDReload as UTF-8Skip encoding tagsReload ASCII as UTF-8
F9Encoding dialogCopy filenameCopy pathManage favoritesCopy full path
F10(system menu)Path → URLURL → PathRecode GB18030
F11Fullscreen toggleInitial positionDefault text scheme
F12Pick schemeCustomize schemes2nd common baseDefault fontScheme default font

Cheatsheet — caret & view navigation

A single-stop reference for moving the caret, scrolling the view, and jumping between document landmarks. Repeats keys already listed in the topical sections above so the cheatsheet stands alone. Notepad3 inherits Scintilla's default keymap unchanged (no SCI_ASSIGNCMDKEY overrides), so the standard caret bindings below all work even though they are not part of Notepad3's accelerator table.

Caret movement (basics)

ShortcutAction
/ Char left / right
/ Line up / down
Home / EndLine start / end
Ctrl+Home / Ctrl+EndDocument start / end
PageUp / PageDownPage up / down
Shift+movementExtend selection in that direction
Ctrl+Shift+movementExtend selection by word / document chunk

Word navigation

ShortcutAction
Ctrl+← / Ctrl+→Caret one word left / right
Ctrl+BackspaceDelete word before caret
Ctrl+DelDelete word after caret
Ctrl+Alt+AToggle Accelerated Word Navigation (see below)
Ctrl+SpaceSelect word at caret (full line if word already selected)
Ctrl+Shift+SpaceMulti-select all matches of word at caret

Accelerated Word Navigation (Ctrl+Alt+A) merges punctuation into the word-character set, so word-jump keys (Ctrl+←, Ctrl+→, Ctrl+Backspace, Ctrl+Del) skip whole code tokens at once.

Example — caret stops in foo->bar.baz walking with Ctrl+→:

  • off: foo  |  ->  |  bar  |  .  |  baz (5 stops)
  • on: foo->bar.baz (1 stop)

Fine-tune which characters still break words via [Settings2] ExtendedWhiteSpaceChars= — see config/Configuration.md. The toggle is persisted in [Settings] AccelWordNavigation=.

View / scroll

ShortcutAction
Ctrl+↑ / Ctrl+↓Scroll one line up / down (caret stays put)
Ctrl+PgUp / Ctrl+PgDnGoto previous / next block (paragraph or fold)
Ctrl+Shift+PgUp / Ctrl+Shift+PgDnSelect to previous / next block
Alt+PageUp / Alt+PageDownParagraph navigation up / down
Ctrl+Alt+VFocused View — show only lines matching word/selection
Ctrl+GGoto line / column dialog

Bookmarks & change history

ShortcutAction
F2Goto next bookmark — falls through to next change-history marker if no further bookmark is found (sticky)
Shift+F2Goto previous bookmark — same fallback
Ctrl+F2Toggle bookmark on current line
Alt+F2Clear all bookmarks

If the document has no bookmarks (or none ahead of the caret in the search direction), F2 / Shift+F2 walk change-history markers instead — modified, saved, and reverted lines shown in the change-history margin (see View → Change History). Once a press has landed the caret on a change-history marker, repeated presses keep walking change-history markers until you reach a bookmarked line.

Find navigation

ShortcutAction
F3Find next
Shift+F3Find previous
Ctrl+F3Find next occurrence of current selection
Ctrl+Shift+F3Find previous occurrence of current selection
F4Replace next
Ctrl+Alt+F2Expand selection to next match
Ctrl+Alt+Shift+F2Expand selection to previous match
Alt+AToggle "mark all occurrences" of current word

Brace navigation

ShortcutAction
Ctrl+BFind matching brace (or jump to nearest enclosing opening brace)
Ctrl+Shift+BSelect to matching brace; repeated presses expand the selection outward one nesting level at a time

Folding

ShortcutAction
Alt+← / Alt+→Collapse / expand current fold
Alt+- / Alt++Jump to previous / next fold point
Ctrl+Alt+FToggle all folds

Selection-boundary jumps

ShortcutAction
Ctrl+,Jump caret to selection start
Ctrl+.Jump caret to selection end

See also

  • faq/FAQ.md"Migrating from Notepad2" lists every shortcut whose meaning was reassigned, plus the why.
  • cmdln/CmdLnOptions.md — full command-line reference.
  • config/Configuration.md[Settings2] keys that affect editor behaviour.
  • minipath/KeyboardShortcuts.md — keyboard shortcuts for the bundled MiniPath file browser.
  • Build/Docs/KeyboardShortcuts.txt — the plain-text version that ships with releases (auto-derived; this Markdown is the canonical edited copy).