Home  >  Article  >  Development Tools  >  How to automatically typeset in notepad++

How to automatically typeset in notepad++

(*-*)浩
(*-*)浩Original
2019-08-05 14:32:2024676browse

astyle is an open source tool. It can easily format the program code into the style you want without manual modification.

Originally, as higher organisms, we should prioritize doing some smart things instead of spending time on things that machines can do perfectly.

How to automatically typeset in notepad++

In notepad: Run or F5. (Recommended learning: notepad )

How to automatically typeset in notepad++

Select the directory where astyle.exe is located in the input box.

How to automatically typeset in notepad++

Add some parameters to the path of the input box command you just ran:

    E:\AStyle_2.06_windows\AStyle\bin\AStyle.exe --style=ansi -S -N -n "$(FULL_CURRENT_PATH)" "$(FULL_CURRENT_PATH)"<br>

Note: --style=ansi -S -N -n sets the formatting parameters for astyle. You can modify it according to your own situation, and then click Save.

How to automatically typeset in notepad++

Give it a name, for example, astyle. You can also customize the shortcut keys according to your own needs! If you want to modify it later, you can modify it yourself in the shortcut key management

How to automatically typeset in notepad++

Finally, "Settings"->"Preferences"->"Others ", just tick the automatic update, and you're done.

How to automatically typeset in notepad++Okay, let's test it. We deliberately messed up the code layout

How to automatically typeset in notepad++Run the shortcut you just set

How to automatically typeset in notepad++

After automatic typesetting

How to automatically typeset in notepad++

The above is the detailed content of How to automatically typeset 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