From a75ff2c80d12853665ebd3565e687cfb21d3ffd6 Mon Sep 17 00:00:00 2001 From: Hanoh Haim Date: Mon, 7 Oct 2019 12:53:34 +0300 Subject: [PATCH] Visual Studio Code: mention ccls.misc.compilationDatabaseDirectory --- Visual-Studio-Code.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Visual-Studio-Code.md b/Visual-Studio-Code.md index 850231a..79f00e4 100644 --- a/Visual-Studio-Code.md +++ b/Visual-Studio-Code.md @@ -40,6 +40,16 @@ If for whatever reason you cannot generate a `compile_commands.json` file, you can add the flags to the `ccls.clang.extraArgs` configuration option. +### `ccls.misc.compilationDatabaseDirectory` + +In case `compile_commands.json` is located not in default place ($root) + +```javascript +"ccls.misc.compilationDatabaseDirectory": "build" +``` + +In this case it is located in `$root/build/compile_commands.json` + ### Semantic highlighting The Visual Studio Code ccls extension supports [semantic highlighting](https://medium.com/@evnbr/coding-in-color-3a6db2743a1e). To enable, put into settings.conf (or workspace configuration):