search
HomeDevelopment ToolsnotepadImplement automatic code typesetting in notepad++ (calling Astyle)

The following tutorial column of notepad will introduce to you how to realize automatic code typesetting (calling Astyle) in notepad. I hope it will be helpful to friends who need it!

I will first introduce how to call the original astyle in notepad.

In notepad: Run or F5,

##Select the directory where astyle.exe is located in the input box, Why don’t you have astyle? The download address is https://files.cnblogs.com/files/libra13179/AStyle_2.06_windows.zip. For introduction, help and download of Astyle, please refer to its official website: http://astyle.sourceforge.net /. It is recommended that the decompression path should not be in Chinese.

After selecting the path,

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 -nSet the layout format parameters for astyle. You can modify them according to your own situationClick save,

Just give it a name, for example, astyle, and 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

Finally, "Settings"-> "Preferences"->"Others", check automatic updates, and that's it. You're done.

Okay, let's test it Deliberately messing up the code layout

Run the shortcut you just set

After automatic sorting

The above is the detailed content of Implement automatic code typesetting in notepad++ (calling Astyle). For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:cnblogs. If there is any infringement, please contact admin@php.cn delete
Where Did Notepad   Originate? A Geographical LookWhere Did Notepad Originate? A Geographical LookMay 09, 2025 am 12:24 AM

Notepad originatedinFrance,developedbyDonHo.ItreflectsFrenchinnovationanddesign,supportsmultipleprogramminglanguages,andhasevolvedintoaglobaltoolduetoitsopen-sourcenatureandcommunitysupport,makingitaversatileanduser-friendlytexteditor.

Is Notepad   Free? Understanding the CostsIs Notepad Free? Understanding the CostsMay 08, 2025 am 12:05 AM

Yes,Notepad isfreetodownloadanduse.1)It'sopen-sourceundertheGNUGPL,allowingfreedistributionandmodification.2)Hiddencostsincludetimetolearnfeaturesandplugins.3)Communitysupportisavailablebutcanbetime-consuming.4)Somepluginsmayrequiredonationsorhavepr

Installing Notepad  : Downloading, Running, and ConfiguringInstalling Notepad : Downloading, Running, and ConfiguringMay 07, 2025 am 12:04 AM

Notepad isaversatiletexteditorthatenhancescodingefficiency.1)Downloadfromtheofficialwebsiteandinstallbychoosingthecorrectversionforyoursystem.2)CustomizetheinterfaceviaSettings>StyleConfiguratorandsetpreferredlanguageslikePythonthroughLanguage>

Installing Notepad  : Quick and Simple StepsInstalling Notepad : Quick and Simple StepsMay 06, 2025 am 12:12 AM

Notepad installation is very simple and takes only a few minutes. 1. Visit the official website to download the appropriate version. 2. Open the download file and follow the prompts to install. 3. It can be used after installation. It not only supports multiple programming languages, but also extends functions through plug-ins, which is a must-have tool for programmers.

The Notepad   Installation Guide: Everything You Need to KnowThe Notepad Installation Guide: Everything You Need to KnowMay 05, 2025 am 12:15 AM

Notepad is a free open source text editor for programming and code editing. The installation steps include: 1. Visit the official website to download the latest version; 2. Double-click the installation file and complete the installation; 3. Start and perform basic configuration. Notepad supports multiple programming languages, with functions such as syntax highlighting, code folding, macro recording, etc., and can expand its functions through plug-ins.

Notepad  's Pricing Model: A Deep DiveNotepad 's Pricing Model: A Deep DiveMay 04, 2025 am 12:01 AM

Notepad adopts a completely free pricing model. 1) This model has attracted a large number of users, formed a huge community, and provided rich feedback and improvement suggestions. 2) Through user donations and corporate sponsorship, Notepad has achieved sustainable development, but unstable funding sources are a challenge it faces.

Installing and Using Notepad  : Your First StepsInstalling and Using Notepad : Your First StepsMay 03, 2025 am 12:01 AM

Notepad is a free Windows text editor that supports multiple programming languages. It is easy to install, just download and run the installer from the official website. Basic features include multi-tab editing, syntax highlighting, and code collapse. Examples of usage include opening and saving files, finding and replacing, and plug-in usage. Personalized settings and shortcut keys can optimize the user experience, and plug-ins can implement code backup and version control.

The History of Notepad   and its Country of OriginThe History of Notepad and its Country of OriginMay 02, 2025 am 12:07 AM

Notepad originatesfromVietnam,createdbyDonHoin2003.Itbeganasaresponsetotheneedforamorepowerful,free,andopen-sourcetexteditor,quicklygainingpopularityduetoitsperformance,usability,andcommunity-drivendevelopment.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools