Skip to content

0.17.0-insiders

Pre-release
Pre-release
Compare
Choose a tag to compare
@bobbrow bobbrow released this 24 Apr 20:10
· 2910 commits to insiders since this release

Instructions

Download the .vsix that matches your OS and run the "Install from VSIX" command in VS Code.

NOTE: This VSIX has a dependency on VS Code version 1.22. If you try to install one of these VSIX packages with an earlier version of VS Code, the extension will not load.

Notable features in this release

Autocomplete for #include

If you type a " or < after the #include keyword, you will get suggestions for header files that you can include. The suggestions are computed based on your "browse.path" and "includePath".

  • NOTE: We don't inspect "compileCommands" to provide the information for this feature yet.

Better support for system include paths if "compilerPath" is set

If you set the "compilerPath" property in your c_cpp_properties.json configurations, you no longer need to manually add the system include paths or defines to the configurations. We will implicitly add them to "includePath", "defines", and "browse.path" for you. In other words, we will not write them to c_cpp_properties.json, but the language server will use them.

Better support for "compilerPath" on Windows

In c_cpp_properties.json you can directly address your WSL compiler by using the linux path and we will discover the system include path for you. If you have multiple distros installed, we pick the one marked as Default when you run wslconfig.exe /l

For example:

        {
            "name": "WSL",
            "compilerPath": "/usr/bin/gcc",
            ...
        }

We also detect Cygwin now and will transform the system include path the compiler provides to one that Windows understands.

Setting default values for configuration properties

New settings have been added to the extension that allow you to set defaults for all of the properties in c_cpp_properties.json configs so that you don't have to set the same values over and over if most of your projects have similar configurations. We will write documentation for this before the final release, but more details can be found in issue #1338