Code::Blocks is a great light IDE for C++ but somehow has a tendency to crap out and hang after every minor operation in Ubuntu 14.04 (at least this is where I see the issue with code::blocks 13.12). This is because of the code completion plugin. You can disable it by going to the menu bar on top. In the menu bar do:
- Plugins->Manage Plugins
- Disable code completion.