Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

An example of automatic code typesetting in notepad++

2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

Editor to share with you an example of automatic code typesetting in notepad++. I hope you will get something after reading this article. Let's discuss it together.

How to call the original astyle method in notepad++.

Run on notepad++: or F5

In the input box, select the directory where astyle.exe is located, what you do not have astyle, download address https://files.cnblogs.com/files/libra13179/AStyle_2.06_windows.zip or introduction to Astyle help and download, please refer to its official website: http://astyle.sourceforge.net/. It is recommended that the decompression path should not be in Chinese.

After the path is selected

My installation path E:\ AStyle_2.06_windows\ AStyle\ bin\ AStyle.exe

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)"

[remarks]-- style=ansi-S-N-n sets the parameters of typesetting format for astyle, which can be modified according to your own situation.

Then click Save

Give it a name, such as astyle, and you can customize shortcut keys according to your own needs.

If you want to modify it later, you can modify it by yourself in the shortcut key management.

Finally, you have to "set"-> "preferences"-> "other". Just put the automatic update on the tick, and the big deal is done.

All right, let's test it. We deliberately messed up the code layout.

Run the shortcut you just set

After automatic finishing

After reading this article, I believe you have a certain understanding of "an example of automatic code typesetting in notepad++". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report