📄 notepad2.txt
字号:
Notepad2 does not create any registry entries on your computer.
Keyboard Shortcuts for Notepad2
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.
Ctrl+S Save file.
F6 Save file as.
Ctrl+F6 Save file copy.
Ctrl+P Print file.
Alt+H Open recent file.
Tools
Alt+N Open document in new window.
Alt+0 Open new empty window.
Ctrl+M Run metapath 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.
F9 Manage favorites.
Edit
Ctrl+Z Undo.
Ctrl+Shift+Z Redo.
Alt+Backspace Undo.
Ctrl+Y Redo.
Ctrl+Shift+Y Undo.
Ctrl+X Cut.
Shift+Del Cut.
Ctrl+C Copy.
Alt+C Copy all.
Ctrl+V Paste.
Shift+Ins Paste.
Ctrl+K Swap.
Del Clear.
Ctrl+A Select all.
Alt+Shift+Arrows Rectangular selection.
Ctrl+Enter New line with toggled auto indent option.
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.
Line
Ctrl+Shift+Up Move line up.
Ctrl+Shift+Down Move line down.
Ctrl+D Duplicate line.
Ctrl+Shift+X Cut line.
Ctrl+Shift+C Copy line.
Ctrl+E Delete line.
Ctrl+Shift+Backspace Delete line left.
Ctrl+Shift+Del Delete line right.
Block
Tab Indent selected block.
Shift+Tab Unindent selected block.
Alt+Q Enclose selection.
Alt+D Duplicate selection.
Alt+Z Strip first character.
Alt+W Strip trailing blanks.
Alt+P Compress whitespace.
Alt+R Remove blank lines.
Alt+M Modify lines.
Ctrl+Shift+W Column wrap.
Ctrl+I Split lines.
Ctrl+J Join 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.
Ctrl+Shift+F9 Path and filename.
Special
Ctrl+Q Block comment (toggle).
Ctrl+Shift+Q Stream comment.
Ctrl+B Find matching brace.
Ctrl+Shift+B Select to matching brace.
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.
F2 Expand selection to next match.
Shift+F2 Expand selection to previous match.
Ctrl+H Replace.
Ctrl+G Jump to line.
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+Shift+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+8 Show whitespace.
Ctrl+Shift+9 Show line endings.
Ctrl+Shift+0 Show wrap symbols.
Ctrl+Shift+V Toggle visual brace matching.
Ctrl+Shift+I Highlight current line.
Zoom
Ctrl++ Zoom in.
Ctrl+- Zoom out.
Ctrl+/ 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.
Alt+T Always on top.
Alt+U Transparent mode.
F7 Save settings now.
Misc.
Esc Optionally minimize or exit Notepad2.
Shift+Esc Save file and exit Notepad2.
F1 Display version info.
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 Switches
Notepad2.exe [/g ln[,col]] [/s id] [/t] [/h] [/x] [/c] [/b] [/n]
[/p x,y,cx,cy[,max]|/p0] [/i] [/f ini|/f0] [/?] [file]
file: File to open, can be a relative pathname, or a shell link.
This must be the last argument, quotes are not necessary.
/g: Jump to specified position, a line of -1 means end of file.
/s: Select specified syntax scheme ("id" is the zero-based index,
0 = Default, 1 = Web, 2 = XML, 3 = CSS, 4 = JavaScript, ...).
/t: Select default text scheme.
/h: Select Web Source Code scheme.
/x: Select XML Document scheme.
/c: Open a new Notepad2 window and paste the clipboard contents.
/b: Open a new Notepad2 paste board to collect clipboard entries.
/n: Always open a new Notepad2 window.
/p: Set window position to x,y with size cx,cy, optional max set
to nonzero to maximize window; /p0 means use system default.
/f: Specify ini-file; /f0 use no ini-file (don't save settings).
/i: Start as tray icon.
/?: Display a brief summary about command line parameters.
Source Code
Notepad2 is based on the Scintilla source code editing component:
http://www.scintilla.org
The full Notepad2 source code can be found at:
http://www.flos-freeware.ch
More Information and Resources
For more information on Notepad2 features, and answers to the most
frequently asked questions (FAQ), please visit the Notepad2 website:
http://www.flos-freeware.ch
Feature Requests
Thank you very much for the overwhelming feedback about Notepad2!
Feature requests are always welcome, but please keep in mind that
Notepad2 has been designed as a compact Notepad replacement.
Hyperlink support is currently not provided by the Scintilla source
code editing component (and not planned), it's unlikely I will
implement this.
Notepad replacement is easier said than done, I'm sorry! Instructions
on how to replace Notepad on various versions of Windows can be found
around in the net.
Credits and Special Thanks
Here I would like to say "THANK YOU" to the developers of the great
Scintilla source code editing component (http://www.scintilla.org),
which is the core of Notepad2. Without Scintilla, the rich features
found in Notepad2 wouldn't have been possible!
Many thanks to everybody for sending me bug reports and useful hints.
A special thank goes to Roland Weigelt (http://www.roland-weigelt.de)
for his helpful thoughts and comments about Notepad2 features and
usability in early development stages. I'd also like to express my
thanks to Timo Kunze (http://www.TimoSoft-Software.de), to Kai Liu
(http://www.kailiu.com) and Moritz Kroll for sending detailed bug
reports and ready-to-use patches.
Copyright
Notepad2 is FREE SOFTWARE and may be used and distributed freely.
Please do not charge any distribution or download fees for this
program, except for the cost of the distribution medium. The use of
this software is AT YOUR OWN RISK. See License.txt for full details.
If you have comments or questions, please drop me a note:
florian.balmer@gmail.com
(c) Florian Balmer 2004-2008
###
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -