Astyle is a tool for formatting the style of your code. Install Astyle through the use of the Artistic Style Plugin For Notepad++.
Installation
- Download
NppAStyle.7z
(which includes the NppAStyle.dll) from Release NppAStyle. - Copy the
NppAStyle.dll
to(Notepad++ installation directory)\plugins
.The
(Notepad++ installation directory or not portable)
is the folder in which you installed Notepad++. The default location is:C:\Program Files (x86)\Notepad++
- Restart Notepad++.
The NppAStyle menu will appear in the Plugins menu.
Applying Settings
- Download the style setting file to an easy to find place like the Desktop or Downloads folder.
- Open the link and download as you need: https://github.com/edenhill/astyle/
- Found an ini file ( *.ini )
- Select Save link as...
- Save to the Desktop of Downloads folder if prompted
- Open the NppAStyle Options dialog.
Plugins > NppAStyle > Options
- Press the Import button.
- In the file dialog, find the downloaded file and press the Open button.
- Press the OK button
Running AStyle
You can now automatically style your code using the AStyle plugin.
- Open the file to style.
- Use the following set of menu commands or press the keys
Alt-Z
.Plugins > NppAStyle > Format Code
Notes:
- IMPORTANT:
- download AStyle from Astyle.
- copy AStyle first to (Notepad++ copy directory)\plugins.
- I try in Notepad++ portable.
Bibliography:
https://community.notepad-plus-plus.org/
https://www.techpout.com/
https://www.tienle.com/
text editor, apps, programmer editor, program, software, computer application
Tidak ada komentar:
Posting Komentar