Vscode-code-runner: Add include paths for C and C++ automatically

Created on 13 Apr 2018  ·  3Comments  ·  Source: formulahendry/vscode-code-runner

Improvement suggestion:

VS Code supports adding include paths to a file c_cpp_properties.json under [dir]/.vscode as an "includePath" array.

Code Runner could pick up these automatically and pass each one to gcc and g++ as arguments to the -I parameter.

Preferably, it would only do this for non-default paths.

feature request

Most helpful comment

We need this feature.

All 3 comments

Figured this wouldn't be so useful without a way to also specify libraries for the linker.

Perhaps Code Runner could save a file under ./.vscode/ like VS Code does, where a list of libraries could be set, either as an array or as direct input to gcc/g++ (as obtained from pkg-config --libs <lib>)?

We need this feature.

We certainly do need this feature!!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Salil03 picture Salil03  ·  5Comments

emadb picture emadb  ·  5Comments

rana picture rana  ·  5Comments

Yensan picture Yensan  ·  4Comments

w3adventures picture w3adventures  ·  3Comments