When comparing CLion vs Code::Blocks, the Slant community recommends CLion for most people. In the question“What are the best IDEs for C++ on Mac OS X?” CLion is ranked 1st while Code::Blocks is ranked 9th. The most important reason people chose CLion is:
CLion has an intelligent autocompletion engine that tries to predict the symbol you are typing based on your previous history and the context in which it's being typed.
Specs
Ranked in these QuestionsQuestion Ranking
Pros
Pro Intelligent code completion
CLion has an intelligent autocompletion engine that tries to predict the symbol you are typing based on your previous history and the context in which it's being typed.
Pro Cross platform
Clion works on Windows, Linux and OSX.
Pro Free/Libre/Open Source
Pro Cross platform
Code::Blocks is available for both Windows and Linux, allowing you to use the same IDE across both OSes if you use different machines.
Pro Easy to use
Easy to pick up, for example much easier to include libraries.
Pro Debugger multi-threading support
The debugger supports multi-threaded processes for faster debugging.
Pro Lets you choose the compiler
Code:Blocks lets the developer choose which compiler to use, giving you a higher level of control for on your development workflow.
Cons
Con Proprietary
Clion is proprietary software which costs $199/1st year for a business license or $89/1st year for an individual license.
Con Build Tool Integration is messy/over complicated
I have a Jetbrains annual subscription so I can use this tool for free and I've used the Java IDE for years so I really want to like CLion. But it's just over complex to add 3rd party libraries etc. Netbeans/Eclipse etc are much better integrated with the build tools
Con It's hard to make the code readable
Due to the problems with indention, it's hard to make the code look nice.
Con Poor code completion
The code completion for Code::Blocks is rather poor compared to other IDEs