Skip to content
This repository has been archived by the owner on Jun 5, 2022. It is now read-only.

GooRoo/qbs-vscode-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

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.