Notepad, as the name suggests, is an enhanced version of Windows' built-in Notepad. It is written in C and has excellent performance. It is not only small (the complete installation package is only 3.8MB), but also has many functions and rich plug-ins, and the most important thing is "completely free"!
#1. Automatic saving
The most feared thing in the text editing process is that you have to save urgently before various unexpected situations occur, such as If you use Notepad, you don’t have to worry about crashes, process freezes, crashes, etc. By default, it will save a copy of the content being edited to %appdata% in real time, and it will automatically do so every time you open an unsaved file. Restore from a copy without worrying about losing any edited data! (Recommended learning: notepad )
Unless the disk is damaged, for individual users, I want Notepad to cooperate with the real-time synchronization function of the cloud disk to achieve three or four nines of data. Reliability is not difficult, right?
2. Edit read-only files
Occasionally, I edit some system files, such as C:WindowsSystem32driversetchosts. When I finish editing and save it, I know that the file is read-only and has no permissions. Under Linux vim, we can:w !sudo tee % directly edit read-only files, but what should we do under windows? Can I right-click the file and remove the properties?
This is too cumbersome! You can quickly solve this problem by going to [Edit] → [Remove Read-Only Mark] under Notepad.
3. Column editing
What should I do if I want to add a tab at the beginning of each line of a text? Do you want to use the shell command sed -r '/^/ /' to handle it?
In Notepad, press the alt key to enter column editing mode, and then press tab to perform the same operation for each selected row.
What if you want to add a consecutive number to the beginning of each line as a line number?
Do you want to copy it over after automatically filling it in excel? In Notepad, press the alt c key combination to enter column editing and insertion mode, and set the corresponding initial value and step size.
4. Monitoring logs
If the log file changes, how to get the latest log? If it is a low-frequency modification, notepad will automatically detect the content change and prompt you whether to load the latest file, but if it is a frequent change
Fortunately, notepad has built this function for us: [View 】→【Monitoring Log】
5. Search and Replace
notepad’s search and replace is very powerful, fully supports PCRE style regular rules, and can output matching content in a separate window. Or mark the search results in a more friendly way.
6. Format, encoding and symbols
Notepad has built-in almost all encoding support in the [Encoding] menu, which can be switched freely, making it very convenient to debug encoding problems.
In view of the incompatibility problem between Linux and Mac and Windows line breaks, notepad can also easily support it. You can easily switch by double-clicking on the status bar at the bottom.
7. Customized syntax highlighting
has built-in syntax highlighting for dozens of languages in notepad. Users can modify and customize the theme at will, but There are still some languages that are not supported, such as scala. We can find the import configured by others from GitHub
The above is the detailed content of What are the powerful features of Notepad++?. For more information, please follow other related articles on the PHP Chinese website!