/parktoma-vscconan

Utility to update Visual Studio Code C++ Tools include paths from conanfile.py

Primary LanguagePythonMIT LicenseMIT

Conan Utility For Visual Studio Code

Overview

This package provides a helper method for a Conan project's conanfile.py to update the Visual Studio Code C++ Tools plugin after installing dependencies, so that Intellisense finds the installed paths

https://pypi.org/project/parktoma-vscconan/

Installing

Install using pip:

pip install parktoma-vscconan

How to use

Use a conanfile.py instead of conanfile.txt to define your project dependencies.

Then, in your class, add an event handler for imports:

#...
from parktoma.vscconan import update_cpp_tools

class MyProject(ConanFile):
    #...
    def imports(self):
        update_cpp_tools(self, conanfile_path=__file__)

Then, run conan install. c_cpp_properties.json should be updated and Intellisense should find your dependencies.