CodeBlocks
Code::Blocks is a free, open-source cross-platform IDE that supports multiple compilers including GCC, Clang and Visual C++. It is developed in C++ using wxWidgets as the GUI toolkit. Using a plugin architecture, its capabilities and features are defined by the provided plugins. Currently, Code::Blocks is oriented towards C, C++, and Fortran.
CodeBlocks IDE can be downloaded from here.
Integration
Integration process consists of these steps:
Open system Terminal and install PlatformIO Core (CLI)
Create new folder for your project and change directory (
cd
) to itGenerate a project using PlatformIO Core Project Generator (
pio project init --ide
)Import project in IDE.
Choose board ID
using pio boards or Embedded Boards Explorer
command and generate project via pio project init --ide
command:
pio project init --ide codeblocks --board <ID>
# For example, generate project for Arduino UNO
pio project init --ide codeblocks --board uno
Then:
Open this project via
Menu: File > Open...
Add new files to
src
directory (*.c, *.cpp, *.ino, etc.
) viaMenu: File > New > File...
Build project using
Menu: Build > Build
Upload firmware using
Menu: Build > Run
Warning
The libraries which are added, installed or used in the project after generating process won’t be reflected in IDE. To fix it you need to reinitialize project using pio project init (repeat it).