Access these commands from the Command Palette (Ctrl+Shift+P / Cmd+Shift+P):
Command
Title
Description
forge.build
Forge: Build Project
Compiles out-of-date C++ source files and links target executable.
forge.buildParallel
Forge: Build Parallel (-j)
Prompts for thread count and executes parallel task compilation.
forge.clean
Forge: Clean Artifacts
Cleans build directory and output binaries.
forge.graph
Forge: Show Dependency Graph
Displays ASCII dependency tree of source files and headers.
Prerequisites
Ensure the forge build executable is available on your system PATH (e.g. /usr/local/bin/forge) or located inside your workspace's ./build/forge directory.
Sample forge.conf Project Setup
Create a forge.conf file in your workspace root:
compiler = clang++
flags = -std=c++17 -Wall -O2
sources = src/main.cpp src/math.cpp src/utils.cpp
includes = include
output = build/my_program