Install astyle by entering the following commands in the terminal:
sudo apt update sudo apt install astyle
Source code indenter for C, C++, Objective-C, C#, and Java
Artistic Style is a source code indenter, formatter, and beautifier for the C, C++, C++/CLI, Objective-C, C# and Java programming languages. . This package contains the command line tool.