CmdID

CmdID / Commands

astyle

Source code indenter, formatter, and beautifier for the C, C++, C#, and Java programming languages. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Source code indenter, formatter, and beautifier for the C, C++, C#, and Java programming languages. Upon running, a copy of the original file is created with an .orig appended to the original file name.

Apply the default style of 4 spaces per indent and no formatting changes

astyle source_fileIdentify

Apply the Java style with attached braces

astyle --style=java path/to/fileIdentify

Apply the allman style with broken braces

astyle --style=allman path/to/fileIdentify

Apply a custom indent using spaces. Choose between 2 and 20 spaces

astyle --indent=spaces=2..20 path/to/fileIdentify

Apply a custom indent using tabs. Choose between 2 and 20 tabs

astyle --indent=tab=2..20 path/to/fileIdentify