Home>Article>Development Tools> How to format code in notepad

How to format code in notepad

(*-*)浩
(*-*)浩 Original
2019-08-12 15:06:05 12425browse

When reading other people's code, you may occasionally encounter situations where the format is messy and difficult to read. If you change it manually, it is error-prone and time-consuming. In this case, you can use some professional editors to format the code.

How to format code in notepad

NotePad is a lightweight code editor that takes up less memory and runs quickly. However, Notepad itself does not have this formatting function, but It supports the NppAStyle plug-in to complete formatting.

Download the automatic format plug-in:(recommended learning:notepad use)

NppAStyle.dll, you can select the plug-in in Notepad -->Pligin Manager-->show Plugin Manager-->Install the NppAStyle plug-in, or you can directly download the NppAStyle plug-in.

Then find the installation directory of the Notepad you installed (the easiest 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 we just decompressed here.

Restart NotePad, the NppAStyle option will appear in the plug-in menu bar

How to format code in notepad

Configure NppAStyle.

Click "Plug-ins"--->"NppAStyle"--->"options" in the menu bar, and select the appropriate style in the code style, such as java, or Stroustrup

How to format code in notepad

The above is the detailed content of How to format code in notepad. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn