4.2.1 How Do I Compile from Within an IDE?

For both MPLAB X IDE and MPLAB for VS Code, you compile your code by building a project.

MPLAB X IDE

If creating a new project, selecting a compiler for one, or simply adding code, refer to MPLAB X IDE User Guide/WebHelp. Once ready, right click on top of the project tree and select Build from the context menu to build the project.

MPLAB for VS Code

If creating a new project, refer to Get Started for MPLAB® X IDE Users New to Visual Studio Code (VS Code®) for how to create, select a compiler for and add code to a project. Then to build the project, in the command palette enter MPLAB CMake: Full Build or click the hammer icon .

For both IDEs, see also:

XC-DSC Toolchain and Supporting IDEs

4.2.3 How Can I Select Which Compiler Version to Build With?