Notepad++ Cheat Sheet

Every shortcut, every menu command, every regex trick - searchable, filterable, and ready to print or copy in our Notepad++ Cheat Sheet.

/ to focus
type:
level:
File Basics
KEY
essential
New File
Ctrl+N
Open File
Ctrl+O
Save File
Ctrl+S
Save As
Ctrl+Alt+S
Save All Open Files
Ctrl+Shift+S
Print
Ctrl+P
Close Current Document
Ctrl+W
Close All Open Documents
Ctrl+Shift+W
Exit Notepad++
Alt+F4
Reload Current File from Disk
Ctrl+R
Switching Between Tabs
KEY
workflow
Next Document
Ctrl+Tab
Previous Document
Ctrl+Shift+Tab
Next Tab (by position)
Ctrl+Page Down
Previous Tab (by position)
Ctrl+Page Up
Move Tab Forward
Ctrl+Shift+Page Down
Move Tab Backward
Ctrl+Shift+Page Up
Jump to Tab 1-9
Ctrl+Numpad 1-9
Open Selected File Path in a New Instance
Alt+F6
Sessions (Menu Only)
MENU
tip
Save Session
File › Save Session…
Load Session
File › Load Session…
Auto-Restore Open Tabs on Startup
Settings › Preferences › Backup
Recent Files (Menu Only)
MENU
tip
Reopen a Recently Closed File
File › Recent Files
Copy, Cut, Paste & Undo
KEY
essential
Copy (also Ctrl+Insert)
Ctrl+C
Cut (also Shift+Delete)
Ctrl+X
Paste (also Shift+Insert)
Ctrl+V
Copy Current Line to Clipboard
Ctrl+Shift+T
Undo (also Alt+Backspace)
Ctrl+Z
Redo (also Ctrl+Shift+Z)
Ctrl+Y
Line Operations
KEY
workflow
Duplicate Current Line or Selection
Ctrl+D
Delete Current Line
Ctrl+L
Swap Line with the Previous One
Ctrl+T
Move Current Line Up
Ctrl+Shift+Up
Move Current Line Down
Ctrl+Shift+Down
Split Lines at the Edge Column
Ctrl+I
Join Selected Lines
Ctrl+J
Insert New Line (also Shift+Enter)
Enter
Deleting Words & Lines
KEY
tip
Delete to Start of Word
Ctrl+Backspace
Delete to End of Word
Ctrl+Delete
Delete to Start of Line
Ctrl+Shift+Backspace
Delete to End of Line
Ctrl+Shift+Delete
Case, Comments & Indentation
KEY
essential
Convert Selection to lowercase
Ctrl+U
Convert Selection to UPPERCASE
Ctrl+Shift+U
Toggle Line Comment
Ctrl+Q
Toggle Block (Stream) Comment
Ctrl+Shift+Q
Indent Selected Lines
Tab
Outdent Selected Lines
Shift+Tab
Autocomplete & Hints
KEY
power
Trigger Word / Function Autocomplete
Ctrl+Space
Show Function Parameter Hint
Ctrl+Shift+Space
Launch Word Completion List
Ctrl+Enter
Text Direction
KEY
tip
Set Text Direction Right-to-Left
Ctrl+Alt+R
Set Text Direction Left-to-Right
Ctrl+Alt+L
Go To
KEY
essential
Open Go to Line Dialog
Ctrl+G
Go to Matching Brace
Ctrl+B
Select Everything Between Matching Braces
Ctrl+Alt+B
Bookmarks
KEY
workflow
Toggle Bookmark on Current Line
Ctrl+F2
Go to Next Bookmark
F2
Go to Previous Bookmark
Shift+F2
Bookmarks & Folds by Mouse
MOUSE
tip
Toggle Bookmark
Click the bookmark margin
Uncollapse a Fold and Everything Below It
Shift+Click the fold point
Toggle a Fold and Cascade Below It
Ctrl+Click the fold point
Split View (Menu Only)
MENU
tip
Move Current Document to Other View
View › Move to Other View
Clone Current Document to Other View
View › Clone to Other View
Selecting Text
KEYMOUSE
essential
Select All
Ctrl+A
Extend Selection by Word
Ctrl+Shift+Left/Right
Extend Selection to Start / End of Document
Ctrl+Shift+Home/End
Select Current Word
Double-click
Select Current Line
Triple-click
Column Mode & Multi-Selection
KEYMOUSE
power
Start Column (Block) Mode Selection
Alt+Drag, or Alt+Left Click
Extend Column Selection with the Keyboard
Alt+Shift+Arrow keys
Open the Column Editor
Alt+C
Start a New Independent Selection Area
Ctrl+Left Click
Zoom & Screen
KEYMOUSE
essential
Zoom In
Ctrl+Numpad Plus
Zoom Out
Ctrl+Numpad Minus
Restore Zoom to 100%
Ctrl+Numpad /
Zoom with the Mouse Wheel
Ctrl+Scroll Wheel
Toggle Full Screen Mode
F11
Toggle Always-on-Top Post-it Mode
F12
Code Folding
KEY
workflow
Collapse the Current Fold Level
Ctrl+Alt+F
Uncollapse the Current Fold Level
Ctrl+Alt+Shift+F
Fold All
Alt+0
Unfold All
Alt+Shift+0
Collapse to Fold Level 1-8
Alt+1…8
Uncollapse to Fold Level 1-8
Alt+Shift+1…8
Mouse-Only View Actions
MOUSE
tip
Toggle Insert / Overtype Typing Mode
Click the rightmost status bar pane
Jump to a Line by Number
Double-click the line pane in the status bar
Pop Up the Context Menu
Right-click
Customization (Menu Only)
MENU
tip
Change Editor Theme & Colors
Settings › Style Configurator
Change Dark Mode Tone v8.1.2+
Settings › Preferences › Dark Mode
Hide the + ▾ ✕ Toolbar Icons v8.4.5+
Settings › Preferences › General
Always Open a Blank Document at Startup v8.5.4+
Settings › Preferences › New Document
Remap Any Shortcut
Settings › Shortcut Mapper
Manage Plugins
Plugins › Plugins Admin
Recording & Playing Macros
KEY
power
Start / Stop Recording a Macro
Ctrl+Shift+R
Play the Last Recorded Macro
Ctrl+Shift+P
Macro Menu Extras (Menu Only)
MENU
tip
Save the Current Recorded Macro
Macro › Save Current Recorded Macro
Run a Macro Multiple Times
Macro › Run a Macro Multiple Times
Edit or Delete a Saved Macro
Macro › Modify Shortcut/Delete Macro
Preconfigured Run Commands
KEY
essential
Open the Run Dialog
F5
Run "Get PHP Help" Command
Alt+F1
Run a Google Search on the Selection
Alt+F2
Run a Wikipedia Search on the Selection
Alt+F3
About Notepad++
F1
Turning Regex On
MOUSE
essential
Enable Regular Expression Mode
Find/Replace dialog › Search Mode › Regular expression
Character Classes
KEY
essential
Any digit
\d
Any non-digit
\D
Word character (letter, digit, underscore)
\w
Non-word character
\W
Whitespace (space, tab, line break)
\s
Non-whitespace
\S
Any character except a line break
.
Anchors & Boundaries
KEY
essential
Start of a line
^
End of a line
$
Word boundary
\b
Not a word boundary
\B
Quantifiers
KEY
workflow
Zero or more
*
One or more
+
Zero or one
?
Between n and m repetitions
{n,m}
Lazy (non-greedy) match of any characters
.*?
Groups & Backreferences
KEY
power
Capturing group
(abc)
Non-capturing group
(?:abc)
Backreference to group 1, inside the Find field
\1
Insert group 1's text, inside the Replace field
$1
Insert the entire match, inside the Replace field
$0
Inline Modifiers
KEY
power
Case-insensitive matching for the rest of the pattern
(?i)
Let . also match line breaks
(?s)
Free-spacing mode, ignore whitespace and allow comments
(?x)
Line Breaks & Tabs
KEY
tip
Line feed
\n
Windows-style line break
\r\n
Tab character
\t
Handy Patterns
KEY
tip
Match a blank line
^\s*$
Match leading whitespace on a line
^\s+
Match trailing whitespace on a line
\s+$
Match a line break on Windows or Unix files
\r?\n
Capture the user and domain of an email address
([a-zA-Z0-9._%+-]+)@([a-zA-Z0-9.-]+\.[a-zA-Z]{2,})
Encoding Menu (Menu Only)
MENU
tip
Convert to UTF-8
Encoding › Convert to UTF-8
Convert to UTF-8-BOM
Encoding › Convert to UTF-8-BOM
Convert to ANSI
Encoding › Convert to ANSI
Open the Character Sets Submenu
Encoding › Character Sets
Language Menu
KEYMENU
essential
Change Current Language
Alt+D
Define a User Defined Language
Language › Define your language…

What Is a Notepad++ Cheat Sheet

A Notepad++ cheat sheet is a quick reference for the keyboard shortcuts, menu commands, and plugin actions built into the Notepad++ text editor. As of version 8.9.6.4, the current stable release, that reference stays organized by task instead of by menu.

Don Ho started the project in September 2003, and it still runs under the GNU General Public License 3.0 as free, open source software.

What it typically includes:

  • File and tab controls: opening, saving, and switching between documents

  • Editing commands: duplicating, deleting, and moving lines

  • Search tools: Find, Replace, and regex-based pattern matching

  • Navigation aids: bookmarks, Go to Line, and the Function List panel

Notepad++ placed third among development environments in Stack Overflow's 2025 Developer Survey, trailing only Visual Studio Code and Visual Studio.

That ranking makes sense once you compare builds. Knowing what VSCode ships with by default explains the gap: a full extension ecosystem and built-in debugging that Notepad++ deliberately skips to stay lighter. Against other longtime lightweight editors, the gap narrows: see Notepad++ vs UltraEdit and Notepad++ vs TextPad for how it stacks up against two editors built on the same "stay small" philosophy. The complete, always-current shortcut list lives in Notepad++'s own technical documentation, updated with every release.

Notepad++ File and Window Management Shortcuts

Notepad++ groups its most-used file and tab commands under Ctrl-based combinations that mirror what most Windows programs already use. Learning eight or nine of them removes most mouse trips to the toolbar.

File Shortcuts

Action

Shortcut

New File

Ctrl+N

Open File

Ctrl+O

Save / Save As

Ctrl+S / Ctrl+Alt+S

Close Document

Ctrl+W

Ctrl+Shift+S saves every open tab at once, which matters most mid-edit across a dozen config files. Notepad++ also keeps its own backup copies of unsaved tabs running in the background; see where Notepad++ saves temp files if a crash ever leaves you hunting for recovered work.

Tab and Window Shortcuts

Tab management in Notepad++ doesn't require touching the tab bar once you know a handful of combinations.

  • Next / previous document: Ctrl+Tab and Ctrl+Shift+Tab

  • Jump to a specific tab: Ctrl+Numpad 1 through Ctrl+Numpad 9

  • Move a tab's position: Ctrl+Shift+Page Up or Page Down

  • Split view: View > Clone to Other View for side-by-side editing

Per Notepad++'s default Shortcut Mapper settings, tab numbers stop at nine. Anything further needs Ctrl+Page Down instead.

Notepad++ Basic Editing Shortcuts

Notepad++'s core editing shortcuts work on whole lines at once, skipping the step of selecting text first. A 2005 study by Lane on Microsoft Word found shortcut-based commands running half a second to three times that much faster per action than the equivalent toolbar or menu clicks, a gap that holds across most Windows text editors.

  • Copy, cut, paste: Ctrl+C, Ctrl+X, and Ctrl+V work exactly as they do in every other Windows program

  • Duplicate line: Ctrl+D copies the current line, or the selected text, directly below itself

  • Delete line: Ctrl+L removes the entire line under the cursor

  • Move line up or down: Ctrl+Shift+Up or Ctrl+Shift+Down repositions a line without cut and paste

  • Undo / redo: Ctrl+Z and Ctrl+Y step backward and forward through changes

These five cover most of what happens during ordinary software development work, from cleaning up duplicate config lines to reordering array entries — small edits like these show up in nearly every stage of the process, as the 7 phases of SDLC lay out in more detail.

Notepad++ Search and Replace Shortcuts

Four dialogs handle every search task in Notepad++, and they share the same keyboard-first design.

Each one opens in the same floating window, just on a different tab, so switching between finding and replacing text takes one keystroke.

  • Ctrl+F opens Find

  • Ctrl+H opens Replace

  • Ctrl+Shift+F opens Find in Files, searching an entire folder at once

  • Ctrl+M marks every match in the document without replacing anything, a fast way to highlight text in Notepad++ before deciding what to do with it

Turning on the regular expression option inside that dialog switches plain text search into full pattern matching, which is where keeping a regex quick reference nearby pays off, especially for removing extra spaces, clearing out empty lines, or tracking down special characters buried in a reformatted log file.

Before version 8.1.3, pressing Ctrl+F, Ctrl+H, or Ctrl+Shift+F a second time only re-centered the same open dialog instead of switching tabs, a quirk long-time users still remember.

Notepad++ Selection and Column Mode Shortcuts

Notepad++ offers two different ways to edit multiple spots in a file at once, and people mix them up constantly. Column mode reshapes a rectangular block of text, while multi-cursor editing types the same change in several places at once.

Feature

Column Mode

Multi-Cursor

Trigger

Alt+drag, or Alt+Shift+Arrow keys

Ctrl+click on each spot

What it does

Selects a rectangular block down the document

Places independent cursors at multiple points

Best for

Editing a fixed-width column across many lines

Renaming the same variable in scattered spots

Ctrl+F3 selects the word under the cursor and jumps straight to its next match, the fastest route to renaming one repeated variable without switching to full column mode.

Under the hood, Notepad++ runs column extension through Scintilla-level commands like SCI_LINEDOWNRECTEXTEND, which is why the behavior stays consistent even in very large files.

Notepad++ Navigation and Bookmark Shortcuts

Four shortcuts cover Notepad++'s navigation and bookmark tools entirely.

Action

Shortcut

Go to Line

Ctrl+G

Toggle Bookmark

Ctrl+F2

Next / Previous Bookmark

F2 / Shift+F2

Go to Matching Brace

Ctrl+B

Go to Matching Brace only works when the cursor sits directly on a bracket, parenthesis, or brace character, which trips up new users expecting it to jump from anywhere on the line.

Notepad++ Code Folding, Indentation, and Function List Shortcuts

Folding hides code blocks you're not working on, while the Function List shows every function or class in the current file as a clickable outline. Both cut down on scrolling in long files.

Folding and Indentation Commands

Folding works per block or across the whole file.

  • Alt+0 folds every block in the document

  • Alt+Shift+0 unfolds everything back open

  • Clicking the small minus icon in the left margin folds just that one block

  • Tab and Shift+Tab indent or outdent a selected block of lines

Folding state doesn't save with the file itself, so reopening a document resets every block to expanded unless session settings say otherwise.

Function List Navigation

The Function List panel reads the current file's language and builds a navigable outline of every function, class, or method it finds.

Opening it through the View menu adds a sidebar you can click through instead of scrolling, which matters most in files running several hundred lines long.

Since Notepad++ recognizes syntax across 78 programming languages, the Function List adapts its outline logic depending on which language mode the open file uses.

Notepad++ Auto-Completion and Snippet Shortcuts

Notepad++'s auto-complete doesn't run on an AI model. It pulls suggestions straight from the open document and from a language-specific keyword file loaded by the current lexer.

  • Word and function suggestions: trigger automatically once you type past a set minimum length, adjustable in Preferences

  • Function parameter hints: Ctrl+Shift+Space shows argument names between the parentheses of a function call

  • Path completion: Ctrl+Alt+Space lists folder contents right after you type a drive letter

  • Cycling multiple hints: Alt+Up and Alt+Down move between different hint definitions for the same function

  • Auto-close pairs: brackets and quotes close automatically once enabled in Preferences > Auto-Completion

The suggestion list marks each entry with a different icon: an fx symbol for functions, a cube for other keywords, and no icon at all for plain word matches pulled from the document itself.

Notepad++ Macro Recording and Playback Shortcuts

94% of workers say they deal with repetitive, time-consuming tasks in their role, according to Zapier research. Notepad++ macros exist to eliminate exactly that kind of busywork inside a text file.

  • Start recording: Macro menu, then Start Recording, default Ctrl+Shift+R

  • Stop recording: same menu, Stop Recording

  • Playback: reruns the last recorded macro exactly once

  • Run Multiple Times: repeats a macro a set number of times, or until the file ends

Saved macros carry their own keyboard shortcut, assigned the moment you save them, so a five-step cleanup routine collapses into one keystroke.

Notepad++ Plugin Manager and Popular Plugins

Notepad++ ships thin by design and adds everything else through plugins.

Version 7.6 folded what used to be a separate download, Plugin Manager, into the core install and renamed it Plugin Admin.

Plugin

What It Does

JSON Viewer

Formats and validates JSON in a collapsible tree view

XML Tools

Validates XML against a schema and pretty-prints markup

NppFTP

Opens, edits, and saves files directly on a remote FTP or SFTP server

Compare

Highlights line-by-line differences between two open tabs

JSON Viewer and XML Tools are usually the first two plugins developers reach for — see how to format JSON in Notepad++ and how to format XML in Notepad++ for the exact steps once either one is installed.

Notepad++'s bundled plugin catalog runs past 140 entries, though not every plugin ships for both the 32-bit and 64-bit builds, so it's worth checking compatibility in Plugin Admin before installing.

Notepad++ File Comparison Commands

Code review runs at roughly 84% of companies, per a CodeGrip survey of more than 1,000 CxOs and developers, and most of that work comes down to reading a diff.

Notepad++ handles that through the Compare plugin, installed separately via Plugin Admin since it isn't bundled by default. For the setup steps, see how to compare two files in Notepad++.

  • Compare two open tabs directly, no external files needed

  • Navigate between detected differences one change at a time

  • Distinct colors mark added, removed, and changed lines

  • Works alongside version control diffs for a quick visual second opinion

It won't replace a full Git diff view for a large repository, but for two config files or two versions of the same script, it beats opening either one in a browser-based diff tool.

Notepad++ Customization Shortcuts for Themes and Settings

Three dialogs control nearly everything about how Notepad++ looks and behaves.

  • Style Configurator: changes theme, font, and color per language, reachable through the Settings menu

  • Language menu: switches syntax highlighting for the current file without touching the file extension

  • Preferences: controls tab behavior, word wrap, auto-save, and file associations — see how to wrap text in Notepad++ if long lines keep scrolling off-screen

  • Shortcut Mapper: reassigns any default keyboard combination to something else

Stack Overflow's 2015 developer survey once summed up the typical stack in one line: JavaScript, written in Notepad++ on a Windows machine, theme set to dark.

Accessibility Shortcuts for Font Size and Zoom

Font size and zoom work independently of the Style Configurator's color settings.

  • Zoom in / out: Ctrl+Numpad Plus and Ctrl+Numpad Minus resize text on the fly

  • Reset zoom: Ctrl+Numpad Divide returns to the default size

These three run at the Scintilla level, so they work the same way in every file type, regardless of which language mode is active. For a permanent change instead of a temporary zoom, see how to increase font size in Notepad++.

Notepad++ Command Line Launch Parameters

Four launch switches cover most command-line use of Notepad++.

Switch

Effect

-multiInst

Opens a new instance instead of reusing the current window

-nosession

Skips restoring the previous session on startup

-l

Sets the syntax language for the file being opened

-x

Positions the cursor at a specific character offset on open

Of the four, -multiInst solves the most common complaint, since Notepad++ normally forces every file into one shared window.

70% of developers use the terminal daily as a primary tool, though only 19% call themselves experts, according to Warp's State of the CLI survey. Launch parameters matter precisely because that daily terminal habit rarely pauses just to open a text editor by hand.

FAQ on Notepad++

What is Notepad++ used for?

Notepad++ is a free text and source code editor for Windows, built for writing and editing code, config files, and plain text. Developers use it for edits, regex-based find and replace, and lightweight work that doesn't need a full IDE. New to it? This guide on how to use Notepad++ covers the basics, and what Notepad++ is goes deeper into its background.

Is Notepad++ free to use?

Yes. Notepad++ is free, open source software released under the GNU General Public License 3.0. There's no trial period, no premium tier, and no license to buy, for personal or commercial use alike. That same free, open-source model extends well past desktop editors, too — plenty of today's open source mobile app development software runs on the same licensing principle.

Is Notepad++ safe to use?

Notepad++ itself is safe. In February 2026, attackers briefly hijacked its update server, not the software's code. The issue is fixed since version 8.9.1. Keep Notepad++ updated to the latest release and you're protected.

Does Notepad++ work on Mac?

No. Notepad++ only runs natively on Windows. Mac users typically run it through Wine, a virtual machine, or switch to alternatives like Visual Studio Code or Sublime Text, which are cross-platform by design. The same Wine-based approach works on Linux, and how to install Notepad++ on Linux covers that setup in more detail.

What's the difference between Notepad and Notepad++?

Windows Notepad is a bare-bones text editor with no syntax highlighting. Notepad++ adds tabs, code folding, plugins, regex search, and support for 78 programming languages, aimed squarely at developers rather than casual note-taking. The full Notepad++ vs Notepad comparison breaks down every difference side by side.

How do I install plugins in Notepad++?

Open Plugins in the menu bar, then Plugin Admin. Browse or search the available list, check the box next to a plugin, and click Install. Notepad++ restarts automatically to finish loading it. For a walkthrough with screenshots, see how to install plugins in Notepad++.

Can Notepad++ compare two files?

Not by default. Installing the Compare plugin through Plugin Admin adds that function, highlighting added, removed, and changed lines between two open tabs side by side, without needing a separate diff tool. See how to compare files in Notepad++ for the setup steps.

How do I switch Notepad++ to dark mode?

Go to Settings, then Style Configurator, and pick a dark theme from the Select theme dropdown, or toggle Dark Mode directly in Preferences. Notepad++ has shipped built-in dark mode since version 8.0.

What's the shortcut to duplicate a line in Notepad++?

Ctrl+D duplicates the current line, or the selected text, directly beneath itself. It's one of the most-used editing shortcuts in Notepad++, alongside Ctrl+L for deleting a line and Ctrl+Z for undo.

Is Notepad++ better than Visual Studio Code?

Depends on the job. Notepad++ opens instantly and handles huge files without lag, while Visual Studio Code offers debugging, extensions, and IntelliSense. Many developers keep both installed and pick based on the task. For a closer look, see the full Notepad++ vs VS Code comparison, or, if Sublime Text is also on your shortlist, Sublime vs Notepad++ and VS Code vs Sublime Text.