This module became outdated long time ago. There is a better full-featured extension for VS Code now.
This module provides a handy way to use Qbs with the C/C++ extension for Visual Studio Code. It is able to pass such an information like defines, list of include paths, etc. from the build system to the extension.
$ mkdir 3rdParty
$ cd 3rdParty
$ git clone https://bitbucket.org/gooroo/qbs-vscode-cpp.git
Project {
qbsSearchPaths: '3rdParty/qbs-vscode-cpp'
}
Just add a dependency:
Project {
CppApplication {
Depends { name: 'vscode' }
}
}
Unfortunately, due to a dumb restriction, it is not possible to use custom modules in the root Project
itself.
The module relies on the presence of .vscode/c_cpp_properties.json
file in your root folder. If you don't have one, generate it with a C/Cpp: Edit Configurations... command in your Visual Studio Code.
The module is distributed under the terms of MIT license.