Home Development Tools notepad Notepad++ usage tutorial

Notepad++ usage tutorial

May 10, 2018 pm 02:57 PM
notepad++ use Tutorial

This article will give you a tutorial on how to use Notepad. I hope it will be helpful to those who use Notepad editor.

1, lightweight, the software is only 6MB when downloaded, and only about 10MB after decompression, which also includes language files, help files, etc.

2, green open source, Notepad is an open source software that complies with the GPL agreement. It can also be downloaded from the official ZIP package and decompressed.

3, like many text editors, provides code completion and code highlighting functions, but some of them require plug-in extensions.

4. The function is much more powerful than Windows Notepad, but it is still far inferior to Vim and Emacs. Of course, EditPlus and UltraEdit are also very good choices, but unfortunately these two are paid software. Not introduced in this article.

5. The threshold for use is low, and it does not require a lot of time to learn like Vim to meet general use.

6, rich customizable rows, many functions are very user-friendly, such as macro recording.

7, supports most regular expressions.

The following introduces some common functions and configurations of Notepad.

After downloading, unzip or execute the installation program and open the software with the shortcut. You can see that in the software, you can generally see the menu bar, toolbar, tab bar, line number bar and bookmark bar on the left, and the status bar below that displays text and editing status. Everything looks very easy, doesn't it?

First customize the language to Chinese. Select Setting—Preferences in the menu bar, and change the interface language to Chinese in the General tab.

In order to facilitate the column editing function, select the multi-column editing download check box in the editing tab. This is the function of holding down ctrl and clicking the mouse to edit multiple columns, which will be introduced later.

Code Highlighting

Notepad provides code highlighting functions in many languages ​​by default. If the program does not automatically recognize it, you can use it in the menu bar language options to choose from. As shown below. There is a language format setting in the setting options, which can change the background theme and language format.

Tag function

The default configuration in Notepad is to open the tab bar. Press Ctrl w to close the current bookmark, or to do something to the bookmark. For dragging and moving operations, you can turn on the double-click to close bookmark function in the preferences. The floppy disk icon on the bookmark appears red when the file changes and turns blue when archived. The currently edited tab bar has an orange bar. Of course, these configurations can be changed according to your own habits.

Bookmark function

Press Ctrl F2 on any line and you will find a small blue dot in the bookmark bar. Press Ctrl F2 again to cancel. Bookmark. Press F2 when flipping to another line. At this time, you will find that the cursor moves back to the bookmarked line. When setting bookmarks in multiple lines, the F2 cursor moves to the previous bookmark, and Shift F2 moves the cursor to the next bookmark.

Code Tips

The default code auto-completion shortcut key is Ctrl Enter. For example, enter b in a CSS file and press Ctrl Enter. Code prompts come out. Of course, this may be a bit inconvenient. You can select the Enable auto-complete for all inputs option and the Prompt function parameters when typing option in the Backup and Auto-Complete tab in the preferences. Of course, these can be configured according to your own habits. As shown below. Once set, code prompts will automatically appear as you type.

Column editing function

The default shortcut key for column editing in Notepad is Alt c, which can insert text or numbers in the column where the cursor is located. However, it is not easy to use in many practical applications. For example, if you want to edit several lines of text, you need to copy these lines to separate text, edit them, and then copy them back. The following is another more convenient method. Remember the settings mentioned in the beginning: Select the multi-column editing download box in the editing tab. This is the function of holding down ctrl and clicking the mouse to edit multiple columns. Now you can hold down Ctrl and use the left mouse button to select multiple columns and then enter the desired characters or edit them. The method is as shown below: Those gray vertical lines are the places selected for editing. Isn't it very convenient?

Color marking function

Color marking is still more convenient in many cases. The method of use is to select the text that needs to be marked, right-click and select the marking format. The format can also be cleared in the same way. Press Ctrl Shift 1 to move to the previous format 1, Ctrl 1 to the next format 1, Ctrl Shift 1 to move to the previous format 2, and so on...

Display Symbol function

You can find the display symbol function in the view tab. This function can display spaces, tab keys, line breaks, etc. for easy editing. The effect is as follows:

F5 running function

Sometimes you need to quickly run the edited code. At this time, you can press F5 to run quickly. You can select the program and save it:

Macro recording function

I don’t use this function much, but I feel it is a function that is needed in many situations. My understanding You can run the recorded action repeatedly by clicking on the toolbar to start recording, then edit the text to execute the action, and click to stop recording. Finally, select Repeat Macro to perform the action repeatedly. Here you can choose the number of repetitions, etc.

There are also some functions that are not mentioned here, or require a large space or are not commonly used, such as customized toolbars, plug-in functions, etc. There are also some functions that are easy to use. You can refer to the shortcut keys below. This tutorial ends here. There may be some mistakes or forgotten places. I hope you can point them out and I hope you can communicate with me.

File
New file Ctrl N
Open file Ctrl O
Save file Ctrl S
Save as Ctrl Alt S
Save all Ctrl Shift S
Close the current file Ctrl W
Print file Ctrl P
Exit Alt F4

Edit
Undo Ctrl Z
Restore Ctrl Y
Cut Ctrl X
Copy Ctrl C
Delete Del
Select all Ctrl A
Column editing Alt C

Indent Tab
Delete indent Shift Tab
Convert to uppercase Ctrl Shift U
Convert to lowercase Ctrl U

Copy the current line Ctrl D
Delete Current line Ctrl L
Split line Ctrl I
Merge line Ctrl J
Move current line up Ctrl Shift Up
Move current line down Ctrl Shift Down

Add/delete single line comment Ctrl Q
Set line comment Ctrl K
Cancel line comment Ctrl Shift K
Block comment Ctrl Shift Q

Function auto-complete Ctrl Space

Search
Find Ctrl F
Search in the file Ctrl Shift F
Find the next F3
Find the previous Shift F3
Select and find the next Ctrl F3
Line positioning Ctrl G
Positioning matching bracket Ctrl B
Set/cancel bookmark Ctrl F2
Next bookmark F2
Previous bookmark Shift F2

View
Full screen F11
Note mode F12
Collapse all levels Alt 0
Expand all levels Alt Shift 0
Collapse the current level Ctrl Alt F
Expand the current level Ctrl Alt Shift F
Hide rows Alt H
Activate F8 from view

Text comparison tool
Compare open files Alt D
Close file comparison Ctrl Alt D
Compare with the last saved file Alt S
Compare with SVN file Alt B
Previous difference Ctrl Page UP
Next difference Ctrl Page Down
The first difference Ctrl Shift Page Up
The last difference Ctrl Shift Page Down

The above is the method of using the Notepad editor that I compiled. I hope it will be helpful to everyone.

Related articles:

Please help me quickly debug code snippets under notepad

Notepad Huge disaster! Epic error~

HTML Editor--Introduction to the use of Notepad

The above is the detailed content of Notepad++ usage tutorial. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
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

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

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Tutorial on how to use Dewu Tutorial on how to use Dewu Mar 21, 2024 pm 01:40 PM

Dewu APP is currently a very popular brand shopping software, but most users do not know how to use the functions in Dewu APP. The most detailed usage tutorial guide is compiled below. Next is the Dewuduo that the editor brings to users. A summary of function usage tutorials. Interested users can come and take a look! Tutorial on how to use Dewu [2024-03-20] How to use Dewu installment purchase [2024-03-20] How to obtain Dewu coupons [2024-03-20] How to find Dewu manual customer service [2024-03-20] How to check the pickup code of Dewu [2024-03-20] Where to find Dewu purchase [2024-03-20] How to open Dewu VIP [2024-03-20] How to apply for return or exchange of Dewu

What software is crystaldiskmark? -How to use crystaldiskmark? What software is crystaldiskmark? -How to use crystaldiskmark? Mar 18, 2024 pm 02:58 PM

CrystalDiskMark is a small HDD benchmark tool for hard drives that quickly measures sequential and random read/write speeds. Next, let the editor introduce CrystalDiskMark to you and how to use crystaldiskmark~ 1. Introduction to CrystalDiskMark CrystalDiskMark is a widely used disk performance testing tool used to evaluate the read and write speed and performance of mechanical hard drives and solid-state drives (SSD). Random I/O performance. It is a free Windows application and provides a user-friendly interface and various test modes to evaluate different aspects of hard drive performance and is widely used in hardware reviews

How to download foobar2000? -How to use foobar2000 How to download foobar2000? -How to use foobar2000 Mar 18, 2024 am 10:58 AM

foobar2000 is a software that can listen to music resources at any time. It brings you all kinds of music with lossless sound quality. The enhanced version of the music player allows you to get a more comprehensive and comfortable music experience. Its design concept is to play the advanced audio on the computer The device is transplanted to mobile phones to provide a more convenient and efficient music playback experience. The interface design is simple, clear and easy to use. It adopts a minimalist design style without too many decorations and cumbersome operations to get started quickly. It also supports a variety of skins and Theme, personalize settings according to your own preferences, and create an exclusive music player that supports the playback of multiple audio formats. It also supports the audio gain function to adjust the volume according to your own hearing conditions to avoid hearing damage caused by excessive volume. Next, let me help you

How to use Baidu Netdisk app How to use Baidu Netdisk app Mar 27, 2024 pm 06:46 PM

Cloud storage has become an indispensable part of our daily life and work nowadays. As one of the leading cloud storage services in China, Baidu Netdisk has won the favor of a large number of users with its powerful storage functions, efficient transmission speed and convenient operation experience. And whether you want to back up important files, share information, watch videos online, or listen to music, Baidu Cloud Disk can meet your needs. However, many users may not understand the specific use method of Baidu Netdisk app, so this tutorial will introduce in detail how to use Baidu Netdisk app. Users who are still confused can follow this article to learn more. ! How to use Baidu Cloud Network Disk: 1. Installation First, when downloading and installing Baidu Cloud software, please select the custom installation option.

How to use NetEase Mailbox Master How to use NetEase Mailbox Master Mar 27, 2024 pm 05:32 PM

NetEase Mailbox, as an email address widely used by Chinese netizens, has always won the trust of users with its stable and efficient services. NetEase Mailbox Master is an email software specially created for mobile phone users. It greatly simplifies the process of sending and receiving emails and makes our email processing more convenient. So how to use NetEase Mailbox Master, and what specific functions it has. Below, the editor of this site will give you a detailed introduction, hoping to help you! First, you can search and download the NetEase Mailbox Master app in the mobile app store. Search for "NetEase Mailbox Master" in App Store or Baidu Mobile Assistant, and then follow the prompts to install it. After the download and installation is completed, we open the NetEase email account and log in. The login interface is as shown below

BTCC tutorial: How to bind and use MetaMask wallet on BTCC exchange? BTCC tutorial: How to bind and use MetaMask wallet on BTCC exchange? Apr 26, 2024 am 09:40 AM

MetaMask (also called Little Fox Wallet in Chinese) is a free and well-received encryption wallet software. Currently, BTCC supports binding to the MetaMask wallet. After binding, you can use the MetaMask wallet to quickly log in, store value, buy coins, etc., and you can also get 20 USDT trial bonus for the first time binding. In the BTCCMetaMask wallet tutorial, we will introduce in detail how to register and use MetaMask, and how to bind and use the Little Fox wallet in BTCC. What is MetaMask wallet? With over 30 million users, MetaMask Little Fox Wallet is one of the most popular cryptocurrency wallets today. It is free to use and can be installed on the network as an extension

In summer, you must try shooting a rainbow In summer, you must try shooting a rainbow Jul 21, 2024 pm 05:16 PM

After rain in summer, you can often see a beautiful and magical special weather scene - rainbow. This is also a rare scene that can be encountered in photography, and it is very photogenic. There are several conditions for a rainbow to appear: first, there are enough water droplets in the air, and second, the sun shines at a low angle. Therefore, it is easiest to see a rainbow in the afternoon after the rain has cleared up. However, the formation of a rainbow is greatly affected by weather, light and other conditions, so it generally only lasts for a short period of time, and the best viewing and shooting time is even shorter. So when you encounter a rainbow, how can you properly record it and photograph it with quality? 1. Look for rainbows. In addition to the conditions mentioned above, rainbows usually appear in the direction of sunlight, that is, if the sun shines from west to east, rainbows are more likely to appear in the east.

What software is photoshopcs5? -photoshopcs5 usage tutorial What software is photoshopcs5? -photoshopcs5 usage tutorial Mar 19, 2024 am 09:04 AM

PhotoshopCS is the abbreviation of Photoshop Creative Suite. It is a software produced by Adobe and is widely used in graphic design and image processing. As a novice learning PS, let me explain to you today what software photoshopcs5 is and how to use photoshopcs5. 1. What software is photoshop cs5? Adobe Photoshop CS5 Extended is ideal for professionals in film, video and multimedia fields, graphic and web designers who use 3D and animation, and professionals in engineering and scientific fields. Render a 3D image and merge it into a 2D composite image. Edit videos easily

See all articles