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

Kelo007 picture Kelo007  路  3Comments

emadb picture emadb  路  5Comments

0x7FFFFFFFFFFFFFFF picture 0x7FFFFFFFFFFFFFFF  路  3Comments

manikantag picture manikantag  路  4Comments

Salil03 picture Salil03  路  5Comments