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: 3 months ago
JSON representation
Utility to update Visual Studio Code C++ Tools include paths from conanfile.py
- Host: GitHub
- URL: https://github.com/parkertomatoes/parktoma-vscconan
- Owner: parkertomatoes
- License: mit
- Created: 2019-10-29T08:17:43.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-10-29T14:18:59.000Z (over 5 years ago)
- Last Synced: 2025-03-08T09:05:14.557Z (3 months ago)
- Topics: conan-io, cpp, vscode
- Language: Python
- Homepage: https://pypi.org/project/parktoma-vscconan/
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 pathshttps://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_toolsclass 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.