search
HomeDevelopment ToolsnotepadSummary of commonly used techniques in Notepad++

This article brings you a summary of commonly used techniques in Notepad. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you.

Notepad is an open source text editor with powerful functions. Very suitable for editing and commenting code. It supports most mainstream programming languages.

This article mainly lists some techniques that I encountered in actual use.

Shortcut keys

Custom shortcut keys

First of all, what you need to know is: Notepad The shortcut keys in can be modified.

Click Settings-> Manage shortcut keys. In the pop-up window, you can modify the shortcut keys you want to change. Of course, you can also check the shortcut keys easily.

Summary of commonly used techniques in Notepad++

Commonly used shortcut keys

##Ctrl-PPrint##Ctrl-Tab##Ctrl-Shift-Tab# #Ctrl-DCopy the current line to the bottom, or copy the selected area to the backCtrl-TCopy the current line to the clipboard (note: the help says to swap the current line with the previous line )Ctrl-Alt-T##Ctrl-JMerge multiple lines (note: when using Select the rows that need to be merged)Ctrl-G ##Ctrl-Delete##Ctrl-Alt-RThe text direction of the entire page is from right to left##Ctrl- Alt-L##Find##F2Go to the next bookmarkShift-F2Jump to the previous bookmarkAlt-0##Alt-Shift-(1~8 )Expand all levelsCollapse##Alt-Shift -0Alt-Shift -(1~8)

Type

Shortcut keys

Function

##File operations

Ctrl-O

Open file

## Ctrl-N

New File

Ctrl-S

Save file

##Ctrl-Alt-S

Save file as

##Ctrl-Shift-S

Save all open files

File tab jump, jump to the next open file

File label jump, jump to the previous open file

##Ctrl- W

Close the current file

Edit

##Ctrl-Z

Undo the last operation

##Alt-Shift-

Arrow keys or Alt left mouse button

Column selection mode

ALT-C

Column Editor

Exchange with the previous line

Ctrl-Shift -Up

Move the current line up one line

## Ctrl-Shift-Down

Move the current line down one line

Ctrl-L

Delete the current line

Ctrl-I

##-

(Note: The help section says to split multiple lines, but it does not work in the latest version)

Jump to a line dialog box

##Ctrl-Q

Add/delete comments

##Ctrl-Shift-Q

Block add/delete comments

Tab (selection of one or more full lines)

Insert Tab

Shift-Tab ( selection of one or more full lines)

Delete the Tab before the position

Ctrl -BackSpace

Delete the content from the current position to the beginning of the word

Delete content from the current position to the end of the word

##Ctrl-Shift-BackSpace

Delete the content from the current position to the beginning of the line

Ctrl -Shift-Delete

Delete content from the current position to the end of the line

Ctrl-U

Convert to lowercase

Ctrl-Shift-U

Convert to uppercase

Ctrl-B

Jump to matching bracket

Ctrl-Space

Trigger function autocomplete list

##Ctrl-Shift-Space

Trigger function parameter prompt

##Ctrl-Enter

Trigger keyword autocomplete list

The text direction of the entire page is from left to right (Note: After zencoding is installed, this shortcut key may be overwritten)

##Ctrl-F

Open the search dialog box

Ctrl-H

##Open the replacement search dialog box

Ctrl-F2

##Set Bookmark

Display

##Ctrl-(Keypad-/Keypad)
Or Ctrl mouse wheel

Zoom in/out the page

Collapse all folds

##Alt-(1~8)

Expand the corresponding layer collapse

##Alt-Shift-0

Expand all folds

Expand all folds

Expand all levels and collapse

Language format modification

Change the theme

If you are tired of the default The monotonous style, I want to change the code highlighting style to stimulate your eyes.

You can clickSet-> Language format, then select a satisfactory theme, click Save and Close

Summary of commonly used techniques in Notepad++

This is to take a look at your code again. Is it completely new?

Summary of commonly used techniques in Notepad++

Change the background color

If you just want to change the background color of the editor. Please follow the steps below:

Click Settings -> Language Format, modify the background color, and check Use global background color, then save. OK.

Summary of commonly used techniques in Notepad++

How to keep the Notepad code highlighting style to the web page or word

Toolbar: Plug-in-> NppExport -> Export to RTF / Export to HTML / Copy RTF to Clipboard / Copy Html to Clipboard / Copy all formats to Clipboard

Export to RTF is to create the highlighted code into a word document.

Export to HTML is to create highlighted code into Html web pages.

The latter three copy the highlighted code to the clipboard in different forms without creating the corresponding file.

I tried Copy RTF to Clipboard and it was successful.

Copy Html to Clipboard is useless.

Other practical tips

How to edit two files at the same time

Open the two files you want to edit at the same time document. Right-click the tab of any of the files and select Move to another view, and the entire screen will be divided into two parts.

You can split the view vertically or horizontally. Please right-click the dividing bar in the middle of the split view and select "Rotate Right" or "Rotate Left" to switch between landscape or portrait mode.

Summary of commonly used techniques in Notepad++

##Auto-complete

Notepad has an auto-complete function. For example, when you enter parentheses and enter the front parenthesis, the back parenthesis can be automatically completed.

Setting method: Click

Settings-> Preferences -> Autocomplete

Summary of commonly used techniques in Notepad++

Select a programming language

If the code in the file you open or the file you are editing is not an actual programming language, you can also choose it yourself.

The method is: click the

Language button on the toolbar and select the correct language in the drop-down menu.

The above is the detailed content of Summary of commonly used techniques in Notepad++. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Notepad  's Pricing Model: A Deep DiveNotepad 's Pricing Model: A Deep DiveMay 04, 2025 am 12:01 AM

Notepad adopts a completely free pricing model. 1) This model has attracted a large number of users, formed a huge community, and provided rich feedback and improvement suggestions. 2) Through user donations and corporate sponsorship, Notepad has achieved sustainable development, but unstable funding sources are a challenge it faces.

Installing and Using Notepad  : Your First StepsInstalling and Using Notepad : Your First StepsMay 03, 2025 am 12:01 AM

Notepad is a free Windows text editor that supports multiple programming languages. It is easy to install, just download and run the installer from the official website. Basic features include multi-tab editing, syntax highlighting, and code collapse. Examples of usage include opening and saving files, finding and replacing, and plug-in usage. Personalized settings and shortcut keys can optimize the user experience, and plug-ins can implement code backup and version control.

The History of Notepad   and its Country of OriginThe History of Notepad and its Country of OriginMay 02, 2025 am 12:07 AM

Notepad originatesfromVietnam,createdbyDonHoin2003.Itbeganasaresponsetotheneedforamorepowerful,free,andopen-sourcetexteditor,quicklygainingpopularityduetoitsperformance,usability,andcommunity-drivendevelopment.

Identifying Notepad  's Country of OriginIdentifying Notepad 's Country of OriginMay 01, 2025 am 12:17 AM

Notepad's origin is France. Its developer Donald Ho is French, and Notepad has become the preferred tool for developers around the world for its lightweight and powerful features, reflecting France's emphasis on knowledge sharing and innovation.

Notepad  's Roots: Unveiling Its National IdentityNotepad 's Roots: Unveiling Its National IdentityApr 30, 2025 am 12:09 AM

Notepad was founded by the Frenchman Don Ho and has a distinct French imprint. 1.DonHo developed Notepad in 2003, aiming to replace Windows Notepad and support multiple programming languages. 2. Its official website and icon design reflect the French cultural characteristics. 3. Users can customize through plug-ins, such as NppFTP, but they need to pay attention to performance optimization, such as cleaning up plug-ins and using multi-document interfaces reasonably.

Getting Started: Installing Notepad   for BeginnersGetting Started: Installing Notepad for BeginnersApr 29, 2025 am 12:25 AM

The steps for installing and initial use of Notepad are as follows: 1) Visit notepad-plus-plus.org to download the appropriate version; 2) Double-click the installation file and install it as prompts; 3) Start Notepad, create a new file and enter text; 4) Save the file and select the file type; 5) Write and run a simple Python program, such as print("Hello,Notepad !"). Through these steps, you can start programming with Notepad smoothly.

The Home of Notepad  : Discovering Its Country of OriginThe Home of Notepad : Discovering Its Country of OriginApr 28, 2025 am 12:20 AM

Notepad originatesfromFrance,developedbyDonHo.1)DonHostartedNotepad in2003tocreateapowerful,user-friendlytexteditor.2)France'stechcommunityandtheGNUGPLlicensefacilitatedglobalcontributionstoNotepad .3)TheFrenchinfluenceisreflectedinNotepad 'seleg

Installing Notepad   on Windows: A Comprehensive TutorialInstalling Notepad on Windows: A Comprehensive TutorialApr 27, 2025 am 12:15 AM

Notepad shouldbeinstalledonWindowsforitsproductivityfeatures.1)Visittheofficialwebsiteanddownloadtheappropriateversion.2)Runtheinstallerandfollowprompts,optionallyassociatingfiletypes.3)Customizesettingsandexplorepluginspost-installation.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use