From 6dee0516d40797b79462db6a040c34b76fefcdd3 Mon Sep 17 00:00:00 2001 From: Cyrus Harrison Date: Sat, 6 Feb 2021 14:53:26 -0800 Subject: [PATCH] more updates to vscode config setup (#703) * small change to vscode config (build in dir that will be ignored by git) * add ref to docs --- .vscode/settings_common.json | 3 ++- scripts/config_vscode.py | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.vscode/settings_common.json b/.vscode/settings_common.json index 977742888..b45cd9cf8 100644 --- a/.vscode/settings_common.json +++ b/.vscode/settings_common.json @@ -1,4 +1,5 @@ { "cmake.configureOnOpen": true, + "cmake.buildDirectory" : "${workspaceFolder}/build-vscode", "cmake.sourceDirectory": "${workspaceFolder}/src" -} \ No newline at end of file +} diff --git a/scripts/config_vscode.py b/scripts/config_vscode.py index 847d07555..5ee130128 100644 --- a/scripts/config_vscode.py +++ b/scripts/config_vscode.py @@ -6,6 +6,7 @@ import json import os + from optparse import OptionParser def parse_args(): @@ -24,6 +25,10 @@ def parse_args(): opts = vars(opts) return opts, extras +################################## +# Ref for vscode cmake settings: +################################## +# https://vector-of-bool.github.io/docs/vscode-cmake-tools/settings.html def write_vscode_settings(settings): settings_file = os.path.abspath(".vscode/settings.json")