Skip to the workspace
Pebellslearn by building
Setting Up Your Environment  ›  Lesson

Code Editors and IDEs

Code Editors / IDEs 12 minA code editor is where you write C++, an IDE adds building, running and debugging in one place, and both rely on a compiler underneath.

cpp / Code Editors and IDEs

Explore each scene at your own pace.

01 · The rule

The rule

Code Editors and IDEs

A code editor is where you write C++, an IDE adds building, running and debugging in one place, and both rely on a compiler underneath.

Separate editor features from compiler, linker and debugger responsibilities.

You have a compiler. Now you need somewhere comfortable to write Rocket Run. The choices seem endless and people argue about them loudly, but they all fit into two groups, and every one of them relies on the compiler you just installed.

The rule

An editor writes code; an IDE also builds, runs and debugs it.

An editor is a tool for writing and changing text, with helpers like syntax colours. An IDE (integrated development environment) bundles editing with building, running and a debugger, usually set up for you.

Common choices:

Tool Type Notes
Visual Studio IDE Windows; ships with the MSVC compiler
CLion IDE Every platform; organises projects with CMake
Xcode IDE macOS; uses Apple Clang
Qt Creator IDE Every platform; free
VS Code Editor Add the C/C++ or clangd extension
Vim, Neovim, Emacs Editor Add clangd for smart features

What turns a plain editor into a smart one is a language server. For C++ the popular one is clangd. It reads your code the way a compiler would and feeds the editor completions, go-to-definition and red squiggles for errors while you type.

Underneath all of them sits a compiler. Pressing the green Run button in any tool simply runs a command like this for you:

g++ -std=c++20 -g rocket.cpp -o rocket && ./rocket
Scene 1 of 5
Hover to wake the cannons. Drag to move, or use arrow keys when focused. Press Enter to fire a shot.