From 939778093fb54946ca6b81354e648a1eefd52be6 Mon Sep 17 00:00:00 2001 From: Evgenii Balai Date: Tue, 14 Apr 2020 23:33:19 -0400 Subject: [PATCH] Updated Visual Studio Code (markdown) --- Visual-Studio-Code.md | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/Visual-Studio-Code.md b/Visual-Studio-Code.md index 3547525..38b2b5c 100644 --- a/Visual-Studio-Code.md +++ b/Visual-Studio-Code.md @@ -5,27 +5,25 @@ Install the ccls extension from the marketplace [here](https://marketplace.visua If you run into issues, you can view debug output by running the (`F1`) `View: Toggle Output` command and opening the `ccls` output section. -To use the vscode-ccls extension without installing it, you can launch VS code from the comand-line with the name of the extension as a command argument: +To use the vscode-ccls extension without installing it, you can launch VS code from the command-line with the path to local copy of vscode-ccls repository as a command argument. Example: ```bash code vscode-ccls ``` +Then press F5 to launch a copy of vscode with the plugin temporarily installed. To use vscode-ccls, you can open your project in the new instance of vscode. + +## Setting up the extension You probably will want to configure the vscode-ccls plugin before initial use. -To access the configuration while running VS Code, this may be perfomed via the _Command Pallete_. +To access the configuration while running VS Code, this may be performed via the _Command Pallete_. (Hint: "Ctrl+Shift+P", or View->Command Pallete.), and enter the following text: * `@ext:ccls-project.ccls` -Now you may start using the features of vscode-ccls with your development project. - -* Open the project root with "Open Folder" (C-k C-o) After changing some ccls configurations in `settings.json`, trigger the command `ccls: Restart language server` or reload the plugin to take effect. -## Setting up the extension - To tell the extension where to find ccls, either add ccls to your `PATH` or set "ccls.launch.command" in User Settings to the absolute path pointing to ccls. ```json @@ -69,6 +67,10 @@ In case `compile_commands.json` is located not in default place ($root) In this case it is located in `$root/build/compile_commands.json` +Now you may start using the features of vscode-ccls with your development project. + +* Open the project root with "Open Folder" (C-k C-o) + ### Semantic highlight