Indentation of code C

Asked

Viewed 7,869 times

1

Two other people and I are developing a C code, and each made their own part of the code, but it got very "messy", is there a command for the codeblocks, the IDE we’re using, or some site that automatically aligns the code? From now on, thank you.

2 answers

3

Indentation

You can indent in Codeblocks by accessing:

Plugins > Source code Formatter(Astyle)

inserir a descrição da imagem aqui

Shortcuts

You can also associate a shortcut to indentation via:

Settings > Editor > Keyboard shortcuts > Source code Formatter(Astyle)

Then in New Shortcut configure the shortcut you want and do Add

inserir a descrição da imagem aqui

Indentation settings

It is even possible to configure how indentation is applied in:

Settings > Editor > Source Formatter

inserir a descrição da imagem aqui

Either style, indentation in tabs or spaces, Keywords not to indent, etc...

-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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.