/vs-code-conan

Conan integration in Visual Studio Code

Primary LanguageTypeScriptMIT LicenseMIT

DeepSource

Disroop vs-code-conan extension

The VsCode Conan extension helps to integrate conan into vscode.

Features

  • Install Conan packages

  • Build Conan Packages

  • Create Conan Packages

  • Supports Multiple Profiles

Install and build packages

To install and build your conan package use the install and build button at the bottom!

Build and install

Create Packages

To create package use the create button at the bottom!

create package

Install Workspace

To install a conan workspace use the install workspace button at the bottom!

![Build and install](images/workspace.gif)

Requirements

Conan needs to be installed.

Extension Settings

Set the settings in the ./vscode/conan-settings.json file.

For example:

{
    "profiles": [
        {
            "name":"linux",
            "conanFile": "${workspaceFolder}/conanfile.py",
            "profile":"clang-linux-debug",
            "installArg": "--build missing -if install",
            "buildArg":"-bf install",
            "createUser": "disroop",
            "createChannel": "development",
            "createArg":"--build=missing"
        },
        {
            "name":"linux-2",
            "conanFile": "${workspaceFolder}/conanfile.py",
            "profileBuild":"clang-linux-release",
            "profileHost":"clang-linux-debug",
            "installArg": "--build missing",
            "buildArg":"",
            "createUser": "disroop",
            "createChannel": "development",
            "createArg":"--build=missing"
        },
        {
            "name":"arm-debug",
            "conanFile": "${workspaceFolder}/conanfile.py",
            "profile":"arm-cortex-m4-debug",
            "installArg": "--build missing",
            "buildArg":"",
            "createUser": "disroop",
            "createChannel": "development",
            "createArg":"--build=missing"
        },
        {
            "name":"arm-release",
            "conanFile": "${workspaceFolder}/conanfile.py",
            "profile":"${workspaceFolder}/arm-cortex-m4-release",
            "installArg": "--build missing",
            "buildArg":"",
            "createUser": "disroop",
            "createChannel": "development",
            "createArg":"--build=missing"
        }
    ],
    "workspace":[
        {
            "name":"ws-arm",
            "conanWs": "${workspaceFolder}/conan-ws",
            "profile":"arm-cortex-m4-release",
            "arg": "--build missing"
        },
        {
            "name":"ws-arm-2",
            "conanWs": "${workspaceFolder}/conan-ws",
            "profileBuild":"clang-linux-debug",
            "profileHost":"arm-cortex-m4-release",
            "arg": "--build missing"
        }
    ]
}

Release Notes

0.7.1

  • Fix Bug Cancel Process

0.7.0

  • Fix Bug Cancel Process

  • Add Text to Icons

  • Support Windows

0.6.1

  • Fix Bugs Profile-Build/Profile-Host

0.6.0

  • Add Profile Build and Profile Host functionality

  • Default install and build folder can be overwritten in InstallArg and BuildArg

0.5.1

  • Fix information dialog view count of builds

0.5.0

  • Add Filewatcher for Linux

  • Add All functionality to Build all Profile/Workspaces at once

0.3.1

  • remove cleanup before installing

0.3.0

  • add progress window

  • cancel conan process

0.2.2

  • bugfix: workspace: enable profiles from workspace same as profile

0.2.1

  • bugfix: continue if profiles or workspace doesn’t exist

0.2.0

  • enable conan workspace install

  • add tooltip hint over buttons

0.1.0

  • use profile from workspace-folder

0.0.1

  • Install Conan packages

  • Build Conan Packages

  • Create Conan Packages

  • Supports Multiple Profiles

  • Set conanFile parameter in settings