In reading other people's code often encounter format is very messy, reading is very laborious, if manual change is easy error, and time-consuming, then can use some professional editor to format the code, notepad++ is a lightweight code editor, taking up less memory, running fast, but notepad+ + itself is not with this formatting function, but he supports the completion of the plugin format.
- Install notepad++, install package download: Http://rj.baidu.com/soft/detail/13478.html?ald
- Download Auto Format plugin: NppAStyle.dll, Link: http://pan.baidu.com/s/1kTzcQV1
- Then find the installation directory of your installed notepad++, and the simplest way is to click "Open File Location" in the properties of the notepad++ shortcut you are using. After entering, we open the Plugins folder and copy the NppAStyle.dll just extracted here.
- Restart notepad++, the Nppastyle option appears in the Plugin menu bar
- The open code is formatted with the ALT+F key, before the format
After formatting:
Format code with notepad++ (format normalization) worldsing