Using astyle from inside intelliJ idea

A simple way to maintain your code style, even possible across your team without a lot of configuration sharing. Add astyle as an external tool with the following command line:

astyle -A1 -Lpjt $FilePath$

That’s a reminder to myself as well when I forget. Then add a shortcut from the settings to the Tools -> astyle. A good short-cut that does not conflict with intelliJ shortcuts is Alt+F .

Leave a Reply