Catalog / Notepad++ Cheatsheet
Notepad++ Cheatsheet
A comprehensive guide to Notepad++, covering essential shortcuts, features, and plugins for efficient text editing and code development.
Basic Navigation & Editing
File Operations
Ctrl+N |
Create a new file. |
Ctrl+O |
Open an existing file. |
Ctrl+S |
Save the current file. |
Ctrl+Shift+S |
Save the current file as. |
Ctrl+Alt+S |
Save all opened files. |
Ctrl+W |
Close the current file. |
Ctrl+Shift+W |
Close all opened files. |
Ctrl+Tab |
Switch to the next document. |
Ctrl+Shift+Tab |
Switch to the previous document. |
Navigation
Ctrl+G |
Go to line number. |
Home |
Go to the beginning of the line. |
End |
Go to the end of the line. |
Ctrl+Home |
Go to the beginning of the document. |
Ctrl+End |
Go to the end of the document. |
Page Up |
Scroll one page up. |
Page Down |
Scroll one page down. |
Search & Replace
Searching
Ctrl+F |
Open the Find dialog. |
Ctrl+H |
Open the Replace dialog. |
F3 |
Find next occurrence. |
Shift+F3 |
Find previous occurrence. |
Ctrl+Shift+F |
Find in Files (search across multiple files). |
Ctrl+M |
Mark all matching words. |
Alt+F3 |
Select all occurrences of the current word. |
Replacing
Ctrl+H |
Open the Replace dialog. |
Find what |
Enter the text you want to find. |
Replace with |
Enter the text you want to replace with. |
Replace |
Replace the current occurrence. |
Replace All |
Replace all occurrences in the current document. |
Replace All in All Opened Documents |
Replace all occurrences in all opened documents. |
Regular Expressions
Notepad++ supports regular expressions in the search and replace dialogs. Some common regular expressions include:
|
Formatting & Code
Formatting
Alt+Shift+Arrow Keys |
Column mode selection (block selection). |
Tab |
Indent the selected text. |
Shift+Tab |
Unindent the selected text. |
Ctrl+Shift+Up/Down |
Move current line up or down. |
Ctrl+L |
Delete current line. |
Ctrl+T |
Duplicate current line. |
Edit -> Line Operations -> … |
Various line operations (sort, remove duplicates, etc.). |
Code Folding
Notepad++ supports code folding (collapsing/expanding blocks of code). Click on the +/- icons in the margin to fold/unfold code blocks. This is especially useful for navigating large files. |
Commenting
Ctrl+K |
Comment out selected lines. |
Ctrl+Shift+K |
Uncomment selected lines. |
Different languages use different comment syntax. |
Notepad++ automatically uses appropriate comment style for current language. |
Plugins & Advanced Features
Plugin Management
Notepad++ has a rich plugin ecosystem. To manage plugins, use the Plugin Admin (Plugins -> Plugin Admin). You can install, update, and remove plugins from there. |
Useful Plugins
|
Advanced Features
Ctrl+Space |
Auto-completion. |
Ctrl+B |
Go to matching brace. |
View -> Word wrap |
Toggle word wrap. |
View -> Show Symbol -> … |
Show whitespace and special characters. |
Encoding -> … |
Change file encoding. |
Search -> In selection |
Search only in selected text. |