C code indentation

1

I and two other people are developing a code in C, and each one did their part of the code, but it was very "messy", is there any command for the codeblocks, the IDE we are using, or some site that lines the code automatically? Thanks in advance.

    
asked by anonymous 06.12.2017 / 18:37

2 answers

1

Indentation

You can indent in CodeBlocks by accessing:

Plugins > Source code formatter (AStyle)

Shortcuts

Youcanalsoassociateashortcuttotheindentationby:

Settings>Editor>Keyboardshortcuts>Sourcecodeformatter(AStyle)

TheninNewShortcutsettheshortcutyouwantandmakeAdd

IndentationSettings

Itisevenpossibletoconfigurehowtheindentationisappliedto:

Settings>Editor>Sourceformatter

Whether at the level of style, indentation in tabs or spaces, keywords not to indent, etc ...

    
06.12.2017 / 21:31
-1

Use Notpad ++ using TextFX > TextFX Edit > Reindent C ++ code.

Or use Sublime Text.

http://substanciando.blogspot.com.br/2014/02/indentacao-no-sublime-text.html
    
06.12.2017 / 18:46