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.

Basic Editing

Ctrl+X

Cut selected text.

Ctrl+C

Copy selected text.

Ctrl+V

Paste text from clipboard.

Ctrl+Z

Undo the last action.

Ctrl+Y or Ctrl+Shift+Z

Redo the last undone action.

Ctrl+A

Select all text in the current document.

Delete

Delete the selected text.

Backspace

Delete the character to the left of the cursor.

Ctrl+Backspace

Delete the word to the left of the cursor.

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:

. - Matches any single character (except newline).

* - Matches zero or more occurrences of the preceding character or group.

+ - Matches one or more occurrences of the preceding character or group.

? - Matches zero or one occurrence of the preceding character or group.

[] - Matches any single character within the brackets.

[^] - Matches any single character not within the brackets.

() - Groups characters together.

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

  • NppExec: Execute external commands from within Notepad++.
  • Compare: Compare two files side by side.
  • JSON Viewer: Format and view JSON data.
  • XML Tools: Validate and format XML data.
  • Python Script: Run Python scripts within Notepad++.

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.