astyle

astyle

TLDR

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

>_ astyle [source_file]
copy

Apply the java style with attached braces

>_ astyle --style=java [path/to/file]
copy

Apply the allman style with broken braces

>_ astyle --style=allman [path/to/file]
copy

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

>_ astyle --indent=spaces=[number_of_spaces] [path/to/file]
copy

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

>_ astyle --indent=tab=[number_of_tabs] [path/to/file]
copy

Copied to clipboard
free 100$ digital ocean credit