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):