Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/parkertomatoes/parktoma-vscconan

Utility to update Visual Studio Code C++ Tools include paths from conanfile.py
https://github.com/parkertomatoes/parktoma-vscconan

conan-io cpp vscode

Last synced: 28 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# Conan Utility For Visual Studio Code

## Overview
This package provides a helper method for a [Conan](https://conan.io) 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:
```bash
pip install parktoma-vscconan
```

## How to use
Use a [conanfile.py](https://docs.conan.io/en/latest/reference/conanfile.html) instead of conanfile.txt to define your project dependencies.

Then, in your class, add an event handler for ```imports```:
```python
#...
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.