Minggu, 26 Juni 2022

Styling Code with Astyle (Notepad++ Plugin)


 

Astyle is a tool for formatting the style of your code. Install Astyle through the use of the Artistic Style Plugin For Notepad++.

Installation

  1. Download NppAStyle.7z (which includes the NppAStyle.dll) from Release NppAStyle.
  2. 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++
    
  3. Restart Notepad++.

    The NppAStyle menu will appear in the Plugins menu.

Applying Settings

  1. Download the style setting file to an easy to find place like the Desktop or Downloads folder.
    1. Open the link and download as you need: https://github.com/edenhill/astyle/ 
    2. Found an ini file ( *.ini )
    3. Select Save link as...
    4. Save to the Desktop of Downloads folder if prompted
  2. Open the NppAStyle Options dialog.
    Plugins > NppAStyle > Options
    
  3. Press the Import button.
  4. In the file dialog, find the downloaded file and press the Open button.
  5. Press the OK button

Running AStyle

You can now automatically style your code using the AStyle plugin.

  1. Open the file to style.
  2. 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://edparrish.it/

https://www.techpout.com/

https://www.tienle.com/

text editor, apps, programmer editor, program, software, computer application

Related Topics:

Tidak ada komentar:

Posting Komentar