mirror of
https://github.com/rizonesoft/Notepad3.git
synced 2026-06-14 21:09:05 +08:00
309 lines
11 KiB
Plaintext
309 lines
11 KiB
Plaintext
Keyboard Shortcuts for Notepad3
|
|
|
|
File
|
|
|
|
Ctrl+N New file.
|
|
Ctrl+F4 Close file, identical with Ctrl+N.
|
|
Ctrl+O Open file.
|
|
F5 Reload file.
|
|
F8 Reload file without encoding detection.
|
|
Ctrl+F8 Reload file with Unicode detection toggled.
|
|
Shift+F8 Reload file with ANSI/UTF-8 defaults toggled.
|
|
Alt+F8 Reload file without file variable parsing.
|
|
Ctrl+S Save file.
|
|
F6 Save file as.
|
|
Ctrl+F6 Save file copy.
|
|
Ctrl+P Print file.
|
|
Ctrl+Alt+H Open recent file.
|
|
|
|
Tools
|
|
|
|
Alt+N Open document in new window.
|
|
Alt+Shit+N Open new empty window.
|
|
Ctrl+M Run MiniPath file browser plugin.
|
|
Ctrl+L Launch document.
|
|
Alt+L Open with.
|
|
Ctrl+R Run command.
|
|
|
|
Favorites
|
|
|
|
Alt+I Open favorites.
|
|
Alt+K Add to favorites.
|
|
Alt+F9 Manage favorites.
|
|
|
|
Edit
|
|
|
|
Ctrl+Z Undo.
|
|
Ctrl+Shift+Z Redo.
|
|
Alt+Backspace Undo.
|
|
Ctrl+Y Redo.
|
|
Ctrl+Shift+Y Undo.
|
|
Ctrl+X Cut selection / Cut current line, if no selection.
|
|
Shift+Del Cut.
|
|
Ctrl+C Copy selection / Copy current line, if no selection.
|
|
Alt+C Copy all.
|
|
Ctrl+E Copy add.
|
|
Ctrl+V Paste.
|
|
Shift+Ins Paste.
|
|
Ctrl+K Swap.
|
|
Del Clear.
|
|
Ctrl+A Select all.
|
|
Alt+Shift+Arrows Rectangular selection.
|
|
Ctrl+Shift+Enter New line with toggled auto indent option. (orig-NP2: Ctrl+Enter)
|
|
Ctrl+PgUp/PgDn Goto previous/next block.
|
|
Ctrl+Shift+PgUp/PgDn Select to previous/next block.
|
|
|
|
Char, Word
|
|
|
|
Ctrl+Space Select word (or line).
|
|
Ctrl+Backspace Delete word before/left.
|
|
Ctrl+Del Delete word after/right.
|
|
Ctrl+Tab Insert tabulator.
|
|
|
|
Lines
|
|
|
|
Ctrl+Shift+Space Select line.
|
|
Ctrl+Shift+Up Move line (block) up.
|
|
Ctrl+Shift+Down Move line (block) down.
|
|
Ctrl+D Duplicate line.
|
|
Ctrl+Shift+X Cut line.
|
|
Ctrl+Shift+C Copy line.
|
|
Ctrl+Shift+D Delete line.
|
|
Ctrl+Shift+Backspace Delete line left.
|
|
Ctrl+Shift+Del Delete line right.
|
|
Ctrl+Shift+W Column wrap.
|
|
Ctrl+I Split lines.
|
|
Ctrl+J Join lines.
|
|
Ctrl+Shift+J Join paragraphs.
|
|
|
|
Block
|
|
|
|
Tab Indent selected block.
|
|
Shift+Tab Unindent selected block.
|
|
Alt+Q Enclose selection.
|
|
Alt+D Duplicate selection.
|
|
Alt+B Pad with spaces.
|
|
Alt+Z Strip first character.
|
|
Alt+U Strip last character.
|
|
Alt+W Strip trailing blanks.
|
|
Alt+P Compress whitespace.
|
|
Alt+R Remove blank lines.
|
|
Alt+M Modify lines.
|
|
Alt+O Sort lines.
|
|
|
|
Convert
|
|
|
|
Ctrl+Shift+U Make uppercase.
|
|
Ctrl+U Make lowercase.
|
|
Ctrl+Alt+I Invert case.
|
|
Ctrl+Alt+T Title case.
|
|
Ctrl+Alt+S Sentence case.
|
|
Ctrl+Shift+S Convert tabs to spaces.
|
|
Ctrl+Shift+T Convert spaces to tabs.
|
|
Ctrl+Shift+A Convert to ANSI.
|
|
Ctrl+Shift+O Convert to OEM.
|
|
|
|
Insert
|
|
|
|
Alt+X HTML/XML tag.
|
|
Ctrl+F5 Time/date (short form).
|
|
Ctrl+Shift+F5 Time/date (long form).
|
|
Ctrl+F9 Filename to Clipboard.
|
|
Ctrl+Shift+F9 Path and filename to Clipboard.
|
|
Ctrl+Shift+. Copy GUID to Clipboard.
|
|
|
|
Special
|
|
|
|
Ctrl+Q Block comment (toggle).
|
|
Ctrl+Shift+Q Stream comment.
|
|
Ctrl+Shift+E URL Encode.
|
|
Ctrl+Shift+R URL Decode.
|
|
Ctrl+Alt+E Escape C Special Chars.
|
|
Ctrl+Alt+U Unescape C Special Chars.
|
|
Ctrl+B Find matching brace.
|
|
Ctrl+Shift+B Select to matching brace.
|
|
Ctrl+1 Enclose within ''.
|
|
Ctrl+2 Enclose within "".
|
|
Ctrl+3 Enclose within ().
|
|
Ctrl+4 Enclose within [].
|
|
Ctrl+5 Enclose within {}.
|
|
Ctrl+6 Enclose within ``.
|
|
Shift+F5 Update timestamps.
|
|
Ctrl+, Jump to selection start.
|
|
Ctrl+. Jump to selection end.
|
|
|
|
Find, Replace
|
|
|
|
Ctrl+F Find.
|
|
Alt+F3 Save find text.
|
|
F3 Find next.
|
|
Shift+F3 Find previous.
|
|
Ctrl+F3 Find next word or selection.
|
|
Ctrl+Shift+F3 Find previous word or selection.
|
|
Ctrl+Alt+F2 Expand selection to next match. (orig-NP2: F2)
|
|
Ctrl+Alt+Shift+F2 Expand selection to previous match. (orig-NP2: Shift+F2)
|
|
Ctrl+H Replace.
|
|
F4 Replace next.
|
|
Ctrl+G Jump to line.
|
|
|
|
Bookmarks
|
|
|
|
F2 Jump to next bookmark.
|
|
Shift+F2 Jump to previous bookmark.
|
|
Ctrl+F2 Toggle bookmark.
|
|
Alt+F2 Clear all.
|
|
|
|
Syntax scheme, Font
|
|
|
|
F12 Select syntax scheme.
|
|
Shift+F12 Select 2nd default syntax scheme.
|
|
Ctrl+F12 Customize syntax schemes.
|
|
Alt+F12 Select default font.
|
|
F11 Select default text syntax scheme.
|
|
Ctrl+F11 Select web source code syntax scheme.
|
|
Shift+F11 Select XML document syntax scheme.
|
|
|
|
View
|
|
|
|
Ctrl+W Toggle word wrap.
|
|
Ctrl+Alt+L Show long line marker.
|
|
Ctrl+Shift+G Show indentation guides.
|
|
Ctrl+Shift+N Show line numbers.
|
|
Ctrl+Shift+M Show selection margin.
|
|
Ctrl+Shift+7 Show wrap symbols.
|
|
Ctrl+Shift+8 Show whitespace.
|
|
Ctrl+Shift+9 Show line endings.
|
|
Ctrl+Shift+V Toggle visual brace matching.
|
|
Ctrl+Shift+I Highlight current line.
|
|
Ctrl+Shift+F Toggle all folds.
|
|
|
|
Zoom
|
|
|
|
Ctrl++ Zoom in.
|
|
Ctrl+- Zoom out.
|
|
Ctrl+0 Reset zoom.
|
|
|
|
Settings
|
|
|
|
Ctrl+T Tab settings.
|
|
Alt++ Increase limit for long lines.
|
|
Alt+- Decrease limit for long lines.
|
|
Ctrl+Shift+H Toggle auto close HTML/XML.
|
|
Ctrl+Shift+L Reuse Window.
|
|
Alt+T Always on top.
|
|
Ctrl+G Transparent mode.
|
|
Ctrl+9 Display text excerpt in title.
|
|
F7 Save settings now.
|
|
Ctrl+F7 Jump to ini-file.
|
|
|
|
Misc.
|
|
|
|
Ctrl+Shift+K Copy window position to clipboard.
|
|
Esc Optionally minimize or exit Notepad3.
|
|
Shift+Esc Save file and exit Notepad3.
|
|
F1 Online Documentation.
|
|
Shift+F1 Display Info version "About…"
|
|
|
|
Regular Expression Syntax
|
|
|
|
. Matches any character
|
|
|
|
\( This marks the start of a region for tagging a match.
|
|
|
|
\) This marks the end of a tagged region.
|
|
|
|
\n Where n is 1 through 9 refers to the first through ninth
|
|
tagged region when replacing. For example, if the search
|
|
string was Fred\([1-9]\)XXX and the replace string was
|
|
Sam\1YYY, when applied to Fred2XXX this would generate
|
|
Sam2YYY.
|
|
|
|
\< This matches the start of a word.
|
|
|
|
\> This matches the end of a word.
|
|
|
|
\x This allows you to use a character x that would otherwise
|
|
have a special meaning. For example, \[ would be interpreted
|
|
as [ and not as the start of a character set.
|
|
|
|
[...] This indicates a set of characters, for example, [abc] means
|
|
any of the characters a, b or c. You can also use ranges, for
|
|
example [a-z] for any lower case character.
|
|
|
|
[^...] The complement of the characters in the set. For example,
|
|
[^A-Za-z] means any character except an alphabetic character.
|
|
|
|
^ This matches the start of a line (unless used inside a set,
|
|
see above).
|
|
|
|
$ This matches the end of a line.
|
|
|
|
* This matches 0 or more times. For example, Sa*m matches Sm,
|
|
Sam, Saam, Saaam and so on.
|
|
|
|
+ This matches 1 or more times. For example, Sa+m matches Sam,
|
|
Saam, Saaam and so on.
|
|
|
|
\d Any decimal digit.
|
|
\D Any character that is not a decimal digit.
|
|
|
|
\s Any whitespace character.
|
|
\S Any character that is not a whitespace character.
|
|
|
|
\w Any "word" character.
|
|
\W Any "non-word" character.
|
|
|
|
\xHH Character with hex code HH.
|
|
|
|
-----> Examples (don't use quotes)
|
|
- Quote lines: find "^" replace with "> "
|
|
- Unquote lines: find "^> " replace with ""
|
|
- Remove line numbers: find "^[0-9]+" replace with ""
|
|
- Convert tabs to double spaces: find "\t" replace with " "
|
|
|
|
|
|
Command Line Help
|
|
|
|
Usage:
|
|
Notepad3 [/?] […[Encoding]] […[Line ending mode]] [/e] [/g] [/m] [/l]
|
|
[/q] [/s] [/d] [/h] [/x] [/c] [/b] [/n] [/r| [/p] [/t] [/i] [/o]
|
|
[/f] [/u] [/v] [/vd] [/y] [/z] [[drive:][path]filename[…]]
|
|
|
|
file Must be the last argument, no quoted spaces by default.
|
|
+ Accept multiple file arguments (with quoted spaces).
|
|
- Accept single file argument (without quoted spaces).
|
|
|
|
Options:
|
|
/? Dispay this help message.
|
|
… Encoding (/ansi, /unicode, /unicodebe, /utf8, /utf8sig).
|
|
… Line ending mode (/crlf, /cr, /lf).
|
|
/e File source encoding.
|
|
/g Jump to specified position (/g -1 end of file).
|
|
/m Match specified text (/m- last, /mr regex, /mb backslash).
|
|
/l Auto-reload modified files.
|
|
/q Force creation of new files without prompt.
|
|
/s Select specified syntax scheme.
|
|
/d Select default text scheme.
|
|
/h Select Web Source Code scheme.
|
|
/x Select XML Document scheme.
|
|
/c Open new window and paste clipboard contents.
|
|
/b Open new paste board to collect clipboard entries.
|
|
/n Always open a new window (/ns single file instance).
|
|
/r Reuse window (/rs single file instance).
|
|
/p Set window position and size (/p0, /ps, /pf,l,t,r,b,m).
|
|
/t Set window title.
|
|
/i Start as tray icon.
|
|
/o Keep window on top.
|
|
/f Specify ini-file (/f0 no ini-file).
|
|
/u Launch with elevated privileges.
|
|
/v Print file immediately and quit.
|
|
/vd Print file (open printer dialog).
|
|
/y Search environment PATH in case of relative filename.
|
|
/z Skip next (usable for registry-based Notepad replacement).
|
|
|
|
Examples:
|
|
Notepad3 /utf8sig /crlf d:\temp\Test.txt
|
|
… Open a new file: "Test.txt" Encoding=UTF-8-BOM, EoL=CRLF.
|
|
Notepad3 /v d:\temp\Test.txt
|
|
… Print the file: "Test.txt" immediately.
|
|
|