Quickly and efficiently delete line numbers in replication code using notepad++

Source: Internet
Author: User

Reprint: Http://plum.0602.blog.163.com/blog/static/1130006502011101524120757/tried the method, very useful!

Why do I use notepad++ to delete code lines as "fast" and "effective"?

first, as a programmer who wants to share and code frequently, copying someone's code may copy the code line number together, to run in the compiler, you have to delete the line number, so with notepad++, you can delete all line numbers in one step , the so-called "fast" (If you configure notepad++ 's own plug-in), follow these steps.

second, encounter problems Baidu who will not? But the so-called "use EditPlus to delete code line numbers" and various "use regular expressions to delete code line numbers" is actually just a regular expression, such as "[0-9]" or "[0-9]+\." Delete all the numbers in the code. However, there is no thought that the code usually contains a lot of data, numbers, and so on, the replacement of these errors will destroy the entire program. Deleting code line numbers with notepad++ also avoids this problem, which is called "correct."

This is going to use the powerful notepad++ of a self-made plug-in--textfx characters. Line numbers such as: pure number "1" "2" "3" "4", Number plus sign "1." 2. "" 3. " 4. "Etc. can be intelligently identified and deleted!" Deleting a line number is just one of the features in Textfx characters, so the so-called "powerful" can be imagined.

I'll show you how to install and use the following:

  1. Download notepad++, this site provides a latest version (V6.12), enter the following download page, click on the file name: Http://kuai.xunlei.com/d/AAWJTFFXIFDD
    (If the file expires after this link is opened, please find the file download provided locally by NetEase blog at the end of this article)
  2. Install notepad++.
  3. start configuration: In order to demonstrate the effect, I first copied a line number with the code, please note that the red box, that is the annoying line number,
  4. Then we start to install the plugin, select "Plugins"-"Plugin Manager"-"Show Plugin Manager" as shown below:
  5. Then find and select "Textfx characters" in the pop-up plugin manager and click "Install". After the installation is prompted to restart (in English), click "Yes" to restart. as follows:


  6. Restart Notepad, see the menu bar more than a "textfx", that is, our installed plug-in. :
  7. We select all the code, and then click "Textfx"--"textfx tloos"--"Delete line Numbers or first Word". As shown in the following:



  8. Finally, let's look at the effect of the operation:

Quickly and efficiently delete line numbers in replication code using notepad++

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.