Notepad++ keyboard shortcuts

Notepad++ is the free, lightweight code and text editor that lives on almost every Windows developer's machine. It opens huge files instantly, handles dozens of languages, and packs surprisingly deep editing power behind a plain interface. Its shortcuts turn quick edits, log digging, and bulk text surgery into second-nature moves. This cheat sheet covers 63 default shortcuts.

Files & Tabs

New fileCtrl+N
Open fileCtrl+O
Save fileCtrl+S
Save file asCtrl+Alt+S
Save all open filesCtrl+Shift+S
Close current fileCtrl+W
Restore recently closed fileCtrl+Shift+T
PrintCtrl+P
Exit Notepad++Alt+F4
Next document tabCtrl+Tab
Previous document tabCtrl+Shift+Tab
Next tab (in tab-bar order)Ctrl+PgDn
Previous tab (in tab-bar order)Ctrl+PgUp

Basic Editing

UndoCtrl+Z
RedoCtrl+Y
CutCtrl+X
CopyCtrl+C
PasteCtrl+V
Select allCtrl+A
Delete word to the leftCtrl+Backspace
Delete word to the rightCtrl+Delete
Delete to start of lineCtrl+Shift+Backspace
Delete to end of lineCtrl+Shift+Delete
Indent selectionTab
Outdent selectionShift+Tab

Line Operations

Duplicate current lineCtrl+D
Cut current lineCtrl+L
Move line or selection upCtrl+Shift+Up
Move line or selection downCtrl+Shift+Down
Join selected linesCtrl+J
Convert selection to UPPERCASECtrl+Shift+U
Convert selection to lowercaseCtrl+U

Comments

Toggle single-line commentCtrl+Q
Add single-line commentCtrl+K
Remove single-line commentCtrl+Shift+K
Block comment selectionCtrl+Shift+Q

Search & Replace

FindCtrl+F
ReplaceCtrl+H
Find nextF3
Find previousShift+F3
Find next occurrence of selected wordCtrl+F3
Find in filesCtrl+Shift+F
Incremental searchCtrl+Alt+I
Go to lineCtrl+G
Go to matching braceCtrl+B

Bookmarks

Toggle bookmark on current lineCtrl+F2
Go to next bookmarkF2
Go to previous bookmarkShift+F2

Auto-Completion

Function completionCtrl+Space
Function parameters hintCtrl+Shift+Space
Word completionCtrl+Enter

View & Folding

Toggle full screenF11
Toggle Post-It mode (frameless window)F12
Fold allAlt+0
Unfold allAlt+Shift+0
Collapse current fold levelCtrl+Alt+F
Uncollapse current fold levelCtrl+Alt+Shift+F

Column Mode

Column (rectangular) selectionAlt+Shift+Arrow keys
Column selection with mouseAlt+Click
Open Column Editor (insert text/numbers per line)Alt+C

Macros & Run

Start/stop macro recordingCtrl+Shift+R
Play recorded macroCtrl+Shift+P
Open Run dialogF5

Put your top Notepad++ shortcuts on real keys

The five Notepad++ actions most worth binding to a physical macropad key:

Ctrl+Shift+S Save all open files One key flushes every dirty tab before a build or commit, a dozen times a day.
Ctrl+Shift+F Find in files The fastest way into project-wide log and code hunts, straight from any tab.
Ctrl+D Duplicate current line The single most repeated editing action when writing config or repetitive code.
Ctrl+Shift+P Play recorded macro Physical replay button turns a recorded edit into a machine-gun bulk operation.
Ctrl+Q Toggle single-line comment Commenting code in and out while testing is a constant loop worth one dedicated key.

I hand-build small-batch programmable macropads (QMK/VIA) in Barcelona. One press, any shortcut, any app.

See the macropads

Notepad++ shortcut FAQs

How do I edit multiple lines at once in Notepad++?
Hold Alt+Shift and use the arrow keys (or hold Alt and drag with the mouse) to make a column selection, then type to edit every selected line simultaneously. For inserting sequences like numbered lists, use the Column Editor with Alt+C.
How do I duplicate a line in Notepad++?
Press Ctrl+D with the cursor anywhere on the line. No selection is needed; the whole line is duplicated below.
How do I search across many files in Notepad++?
Press Ctrl+Shift+F to open Find in Files. You can point it at any folder, filter by file type, and even run Replace in Files across the whole set.
Can I record and replay repetitive edits in Notepad++?
Yes. Press Ctrl+Shift+R to start recording a macro, perform your edits, press Ctrl+Shift+R again to stop, then replay with Ctrl+Shift+P. The Macro menu also lets you run it multiple times or save it permanently.
How do I change keyboard shortcuts in Notepad++?
Open Settings > Shortcut Mapper. It lists every menu command, macro, and plugin command, and lets you rebind or clear any shortcut.