LinuxAlternative

Linux · Programming

Code::Blocks

Code::Blocks is a free, cross‑platform IDE focused on C, C++ and Fortran development.

Open sourceFreeFlatpak
Be the first to rate
License
GPL-3.0+
Latest version
25.03 (March 31, 2025)
Developer
The Code::Blocks team
Installs
1,674 (Flathub, 30 days)

What is Code::Blocks?

Code::Blocks originated in 2005 as a community‑driven project and has matured into a stable, extensible IDE. It ships as a flatpak on Flathub and follows a classic Windows‑style layout, making the transition from Windows IDEs relatively painless. The project is still active, with its latest release in early 2025.

The IDE targets developers who need a lightweight, configurable environment for C, C++ or Fortran, especially those who prefer a native Linux feel over heavyweight commercial tools. It supports multiple compilers, parallel builds and debugging with GDB, and its plugin system lets you add features as required.

Compared with WebStorm, which is a JavaScript‑centric IDE, Code::Blocks feels more like a traditional C/C++ editor: panels are dockable, shortcuts are similar to Visual Studio, and the UI is not cluttered with web‑specific tooling. If you’re used to Windows‑only IDEs like Visual Studio or Code::Blocks’ own Windows build, the Linux version behaves almost identically, just running in an isolated flatpak sandbox.

Best for: C/C++ and Fortran developers who want a simple, extensible IDE without a heavy footprint.

Key features of Code::Blocks

  • Support for GCC, Clang, MSVC and other compilers
  • Parallel and multi‑target project builds
  • Integrated GDB debugging
  • Customizable UI with dockable panes
  • Extensible plugin architecture
  • Code completion and syntax highlighting
  • Project wizards for common templates
  • Cross‑platform builds (Windows, Linux, macOS)

Pros

  • Highly configurable via plugins
  • Lightweight compared to full‑stack IDEs
  • Good debugger integration
  • Works out‑of‑the‑box on most distros via flatpak

Cons

  • Interface looks dated
  • Limited support for modern C++ standards out of the box
  • No built‑in support for web languages

Windows programs Code::Blocks replaces

How to install Code::Blocks on Linux

Flatpak (Flathub)flatpak install flathub org.codeblocks.codeblocks

Tips for Windows users

Most project files are plain *.cbp XML files, so you can copy them directly from Windows. Keyboard shortcuts (F9 to build, Ctrl+F9 to run) are the same, and the flatpak sandbox means you may need to grant access to external toolchains via flatpak permissions.

Recent releases

  • 25.03 —

Code::Blocks: frequently asked questions

How do I install Code::Blocks on Linux?

Use the Flathub flatpak: flatpak install flathub org.codeblocks.codeblocks or install from your distro’s package manager if available.

Can Code::Blocks debug programs compiled with GCC?

Yes, it integrates with GDB and can debug binaries built with GCC, Clang or other supported compilers.

Is there support for CMake projects?

Code::Blocks can import CMake projects via the CMake plugin, though native CMake support is limited compared to dedicated tools.

Does Code::Blocks run on Wayland?

The flatpak version runs under Wayland, but you may need to enable XWayland compatibility for some older plugins.

Updated