A tool that converts Visual Studio 2026 solution files(.slnx) into compile_commands.json compilation database.
Basic usage:
s2cc [path] ...
path: Path to your solution file.
--outdir [path] sets the directory to save the compile_commands.json file.
-D [variable]=[value] sets the value of a variable(e.g.,-D Configuration=Debug).
Important
Usually, we have to specify the values of variables Configuration(e.g,Debug, Release) and Platform(e.g,x64, Win32) to make s2cc select correct configuration; otherwise, it won't output anything.
--version prints version information.
--help shows help message
s2cc ./app.slnx --outdir . -D Configuration=Debug -D Platform=x64Download the executable file from releases and add it to PATH.