User forums > Using Code::Blocks
CodeFormatting aStyle - how do line breaks after fixed amount of characters
Kaspatoo:
--- Code: --- if(countEdgesToBeDeleted != 0)
{
shortcutsPerAdjNodeRatio = (double)
countShortcutsToBeCreated / countEdgesToBeDeleted;
}
calculatedRank = shortcutsPerAdjNodeRatio;
}
return calculatedRank;
}
--- End code ---
There, even when selecting all first the line " countShortcutsToBeCreated / countEdgesToBeDeleted;" is vertically evened with the equal-sign of the line before.
There are much more of such lines beeing evened with an equal sign.
Else I cannot see a difference between using format astyle and first selecting all.
BlueHazzard:
as i noted at top cb uses astyle for code formatting. So if astyle does not work codeblocks does not work.
I have tested your code with the latest astyle executable and i can confirm that astyle does not handle this correctly....
So this is a astyle bug and has to be reported to the astyle bug tracker...
can you do this please?
BlueHazzard:
The link to the bug reporting:
https://sourceforge.net/p/astyle/bugs/?source=navbar
also it would be better if you test astyle directly download link:
https://sourceforge.net/projects/astyle/files/astyle/astyle%202.06/
it is very easy to use, just read the help file...
Navigation
[0] Message Index
[*] Previous page
Go to full version