Notepad function Introduction, common functions and configuration of Notepad

Source: Internet
Author: User


notepad++ is a programmer commonly used a text editor for programming, this article mainly introduces the characteristics of notepad++ and the use of skills, special instructions to everyone, notepad++ plug-in is very powerful, there are more than 100 plug-ins.

1, lightweight, software download down only 6MB, after decompression but about 10MB, which also includes the language file Help files.

2, green Open source, notepad++ is a GPL-compliant open source software, the same can be extracted from the official download Zip package.

3, like many text editors, provides code completion, code highlighting, but some of them need to rely on plug-in extensions.

4, features compared to Windows Notepad a lot more powerful, but than Vim,emacs still have a great deal, of course, Editplus,ultraedit is also very good choice, unfortunately these two are fee-free software. Not described in this article.

5, the use of low threshold, do not need to spend a lot of time like vim to learn to meet the general situation of use.

6, rich customizable lines, many features are very user-friendly, such as macro recording.

7, support for most regular expressions.

Here are some common features and configurations for notepad++.

After downloading, unzip or execute the installer and the shortcut opens the software. Can see the software in general can see the menu bar, toolbars, tab bar, the left side of the line number and the Bookmarks bar, as well as the following display text and editing status bar, everything seems easy, right?

Start by customizing the language into Chinese. In the menu bar, select Setting-preferences, and in the General tab, change the interface language to Chinese.

In order to facilitate the column editing function, in the Editing tab, the multi-column edit Download box is selected, this is to press CTRL + mouse click Edit Multi-column function, described later.

Code highlighting

notepad++ Default provides the code highlighting feature in many languages, if the program does not automatically recognize the language options that can be selected in the menu bar. The following figure. You can change the background theme and the language format by setting the language formatting in the settings option.

Label function

In notepad++, the default configuration is to open the tab bar, press Ctrl+w to close the current bookmark, you can also drag and move the bookmark, in the preferences can open double-click to close the bookmark feature. When the file changes, the floppy icon on the bookmark appears in red and the archive turns blue. The currently edited Tab bar has an orange bar, of course, these configurations can be changed according to their own habits.

Bookmark Features

Press CTRL+F2 on any line to find a small blue dot in the bookmark bar and press Ctrl+f2 again to cancel the bookmark. When you press F2 on another line, you will notice that the cursor is moved back to the line that marks the bookmark. More rows when you set a bookmark, the F2 cursor moves to the previous bookmark, and the SHIFT+F2 cursor moves to the next bookmark.

Code hints

The default Code AutoComplete shortcut keys are ctrl+enter, such as entering B in a CSS file and then pressing Ctrl+enter to come up with code hints. Of course, this may be inconvenient, you can select all the inputs in the preferences of the Backup and AutoComplete tab to enable the auto-complete option and the input prompt function parameter options, of course, these can be configured according to their own habits. The following figure. The code hints are displayed automatically when you enter them.

Column editing features

notepad++ column editing the default shortcut key is Alt+c, which allows you to insert text or numbers in the column where the cursor is located. But the actual application is not very useful in many cases. For example, to edit several lines of text, you need to copy these lines into separate text for editing and then copy them back. Here is another convenient way to remember the setting in the opening: In the Edit tab, the multi-column edit Download box is selected, this is the ability to press CTRL + mouse click to edit multiple columns. You can now press and hold CTRL with the left mouse button to select multiple columns and enter the desired characters or edit them. The pattern is as follows: Those gray vertical lines are the places where the edits are selected. is not very convenient.

Color Labeling Features

Color tags are still a lot more convenient, using the method is to select the text you want to tag, right-click the format of the tag. The same method can also clear the format. Press Ctrl+shift+1 to move to the previous format 1,ctrl+1 is to the next format 1,ctrl+shift+1 can be moved to the previous format 2, and so on ...

Display symbol function

In the Attempt tab can find the display symbol function, this function is can display the space, the TAB key, wraps and so on can be convenient to edit, the effect is as follows:

F5 Run function

Sometimes you need to run the edited code quickly, you can press F5 to run quickly, you can choose the program and Save:

Macro recording feature

This feature I use not much, but the feeling is in many cases will need the function, I understand that can be the recording of the action repeatedly run, by clicking on the toolbar to start recording, then edit the text to perform the action, click Stop Recording. Finally, select Repeat to run the macro to repeat the action. Here you can choose the number of repetitions and so on.

There are some features that are not mentioned here, or that require a lot of space or are not commonly used, such as custom toolbars, plugin functions, etc. There are some functions to use simple, you can refer to the following shortcut keys. This tutorial ends here, there may be some wrong place or forget the place, I hope you point out, I hope you will communicate with me.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.