Notepad++/Sublime quickly adds information at the beginning and end of the line, and removes the change sign

1. Create a file using notepad++

  1. To add fields to the line header , put the mouse at the front of the first line, Alt+C, enter the information to be added to the line header, and click OK 

  2. Add fields at the end of the line , two methods

①. First put the mouse at the end of the first line, Alt+C, enter the information that needs to be added at the end of the line, and click OK 

②. If the number of characters in each line is different, how to add characters at the end

First put the mouse at the end of the first line, Ctrl+F, enter the search symbol $, enter the tail information, and replace all

 3. Remove the shift symbol

Ctrl+F,, enter \r\n in the search target (line breaks can be \n,\r\n,\r due to environmental problems), select the correct expression

 This method is commonly used in sql, such as adding '' before and after, deleting and changing the number to query the corresponding information

For example, if you check out hundreds of pieces of data from the database, you can use the above method to quickly become like this

2. Sublime

Step 1: Select all content: ctrl+A

Step 2: Press ctrl+shift+L

Step 3: Use ← and → to control the position of the cursor (two positions will be selected at the beginning: that is, there will be a cursor at the first position, press ↓, and there will be only one cursor)

Step 4: Add content at the cursor

Guess you like

Origin blog.csdn.net/bugua3542/article/details/119537241