[anjuta-list] Formatting source code inside Anjuta



Just a tip that could be expanded on for using uncrustify to format source code inside Anjuta.

Vala Example: Could be more fancy using the $variables but you will get the idea.

Store a default .uncrustify.cfg in your home directory. (Mine is setup for Vala)

Anjuta > Edit > Preferences > General > Installed plugins

Enable the Tools plugin

Now scroll down the side pane and click on Tools Icon

Click New button

Name: uncrustify

Command: uncrustify

Parameters: -l vala

Standard input: Current buffer

Standard output: Replace buffer

Standard error: Popup dialog

Click the OK button

Now it will appear in the Tools menu on the main toolbar.

Just did not see it posted anywhere.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]