notepad++ column delete operation

I found an article about socket programming on the Internet, and I want to copy the code directly to run the test, but the website is not very user-friendly. There is a line number at the beginning of each line. If you copy it directly, you need to delete it line by line. It is troublesome. Thinking that the vi editor under linux can complete the column operation, there should also be related software under windows that can do the job. Thinking of Notepad++, a powerful and open source free editor that I used during my internship, I found the following solution from the Internet . Since I don't know the original source, I will not indicate it here.
【Column Edit】

Usually the way we edit files is line editing, Notepad++ also has a column editing mode. As the name suggests, column editing is the ability to edit files by column. The operation method is as follows:

1. Edit consecutive column areas at the same time:
First click on the starting point where you want to edit the column, then press shift+alt at the same time and hold, and click on the end area where you want to edit the column.

2. Insert data in all columns from the beginning to the end of the document:
Click the mouse at the position where you want to insert the data, then press alt+c, enter the data to be inserted in the pop-up dialog box, and after confirming, insert the data in all the following columns.

3. Insert data in discontinuous columns at the same time:
First in the menu: Settings - Preferences - Editing, select "enable(ctl+mouse click/selection)" of "multi-editing settings"
Press and hold ctl, and click the left mouse button on the discontinuous row at the same time. The clicked position is the position where the data is to be inserted at the same time.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326703377&siteId=291194637
Recommended