Skip to content

Commit

Permalink
more updates to vscode config setup (#703)
Browse files Browse the repository at this point in the history
* small change to vscode config (build in dir that will be ignored by git)

* add ref to docs
  • Loading branch information
cyrush authored Feb 6, 2021
1 parent e6a0c0c commit 6dee051
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .vscode/settings_common.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"cmake.configureOnOpen": true,
"cmake.buildDirectory" : "${workspaceFolder}/build-vscode",
"cmake.sourceDirectory": "${workspaceFolder}/src"
}
}
5 changes: 5 additions & 0 deletions scripts/config_vscode.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import json
import os


from optparse import OptionParser

def parse_args():
Expand All @@ -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")
Expand Down

0 comments on commit 6dee051

Please sign in to comment.