2 Plugins |
2.1 Astyle
Artistic Style is a source code indenter, source code formatter, and source code beautifier
for the C, C++, C# programming languages. It can be used to select different styles of coding rules within
CodeBlocks.
When indenting source code, we as programmers have a tendency to use both spaces and tab
characters to create the wanted indentation. Moreover, some editors by default insert spaces instead of tabs
when pressing the tab key, and other editors have the ability to prettify lines by automatically setting up the
white space before the code on the line, possibly inserting spaces in a code that up to now used only tabs for
indentation.
Since the number of space characters shown on screen for each tab character in the source
code changes between editors, one of the standard problems programmers are facing when moving from one editor
to another is that code containing both spaces and tabs that was up to now perfectly indented, suddenly becomes
a mess to look at when changing to another editor. Even if you as a programmer take care to ONLY use spaces or
tabs, looking at other people’s source code can still be problematic.
To address this problem, Artistic Style was created - a filter written in C++ that
automatically re-indents and re-formats C / C++ / C# source files.
Note:
When copying code, for example from the internet or a manual, this code will automatically be adapted to the coding rules in CodeBlocks.
When copying code, for example from the internet or a manual, this code will automatically be adapted to the coding rules in CodeBlocks.
Created: 2010/25/05 11:52 Updated: 2010/25/05 11:52
Author: HighTec EDV-Systeme GmbH
Copyright © 2010 HighTec EDV-Systeme GmbH
Author: HighTec EDV-Systeme GmbH
Copyright © 2010 HighTec EDV-Systeme GmbH