/qbs-vscode-cpp

A mirror of the https://bitbucket.org/gooroo/qbs-vscode-cpp

Primary LanguageQMLMIT LicenseMIT

Archived!

This module became outdated long time ago. There is a better full-featured extension for VS Code now.


Made by Ukrainian

qbs-vscode-cpp

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.

Installation and usage

Get the module

$ mkdir 3rdParty
$ cd 3rdParty
$ git clone https://bitbucket.org/gooroo/qbs-vscode-cpp.git

Add path to your root project

Project {
    qbsSearchPaths: '3rdParty/qbs-vscode-cpp'
}

Use it in your sub-project

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.

Pre-requisites

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.

License

The module is distributed under the terms of MIT license.