This repository has been archived by the owner on Jul 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 162
Visual Studio Code
uıɐɾ ʞ ʇɐɯɐs edited this page May 18, 2018
·
15 revisions
Install the cquery extension from the marketplace here. The source code is located at https://github.com/cquery-project/vscode-cquery.
If you run into issues, you can view debug output by running the
(F1
) View: Toggle Output
command and opening the cquery
output section.
To tell the extension where to find cquery, either add cquery to your PATH
or set "cquery.launch.command" in User Settings to the absolute path pointing to cquery.
{
"cquery.launch.command": "/absolute/path/to/cquery/release/bin/cquery",
"cquery.cacheDirectory": "/home/.cquery-cache/"
}
If for whatever reason you cannot generate a compile_commands.json
file, you
can add the flags to the cquery.index.extraClangArguments
configuration
option.
The Visual Studio Code cquery extension supports semantic highlighting. To enable, put into settings.conf (or workspace configuration):
"cquery.highlighting.enabled.types": true,
"cquery.highlighting.enabled.freeStandingFunctions": true,
"cquery.highlighting.enabled.memberFunctions": true,
"cquery.highlighting.enabled.freeStandingVariables": true,
"cquery.highlighting.enabled.memberVariables": true,
"cquery.highlighting.enabled.namespaces": true,
"cquery.highlighting.enabled.macros": true,
"cquery.highlighting.enabled.enums": true,
"cquery.highlighting.enabled.typeAliases": true,
"cquery.highlighting.enabled.enumConstants": true,
"cquery.highlighting.enabled.staticMemberFunctions": true,
"cquery.highlighting.enabled.parameters": true,
"cquery.highlighting.enabled.templateParameters": true,
"cquery.highlighting.enabled.staticMemberVariables": true,
"cquery.highlighting.enabled.globalVariables": true,