Skip to content

Commit b984a1a

Browse files
author
Micha Reiser
authored
Merge pull request #61 from MichaReiser/visual-studio-code-configuration
Document Dev configuration for Visual Studio Code
2 parents 7213192 + 7d4a10d commit b984a1a

File tree

3 files changed

+58
-18
lines changed

3 files changed

+58
-18
lines changed

.vscode/c_cpp_properties.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"configurations": [
3+
{
4+
"name": "Mac",
5+
"includePath": [
6+
"${workspaceFolder}/**"
7+
],
8+
"defines": [],
9+
"macFrameworkPath": [
10+
"/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/System/Library/Frameworks"
11+
],
12+
"compilerPath": "/usr/bin/clang",
13+
"cStandard": "c11",
14+
"cppStandard": "c++17",
15+
"intelliSenseMode": "clang-x64",
16+
"configurationProvider": "vector-of-bool.cmake-tools",
17+
"compileCommands": "${workspaceFolder}/build/compile_commands.json"
18+
}
19+
],
20+
"version": 4
21+
}

.vscode/settings.json

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
11
{
2-
"editor.formatOnSave": true,
3-
"files.associations": {
4-
"__functional_03": "cpp",
5-
"functional": "cpp",
6-
"__bit_reference": "cpp",
7-
"__hash_table": "cpp",
8-
"__split_buffer": "cpp",
9-
"__tree": "cpp",
10-
"deque": "cpp",
11-
"iterator": "cpp",
12-
"map": "cpp",
13-
"memory": "cpp",
14-
"string": "cpp",
15-
"string_view": "cpp",
16-
"unordered_set": "cpp",
17-
"vector": "cpp"
18-
}
19-
}
2+
"editor.formatOnSave": true,
3+
"[cpp]": {
4+
"editor.formatOnSave": false
5+
},
6+
"files.associations": {
7+
"__functional_03": "cpp",
8+
"functional": "cpp",
9+
"__bit_reference": "cpp",
10+
"__hash_table": "cpp",
11+
"__split_buffer": "cpp",
12+
"__tree": "cpp",
13+
"deque": "cpp",
14+
"iterator": "cpp",
15+
"map": "cpp",
16+
"memory": "cpp",
17+
"string": "cpp",
18+
"string_view": "cpp",
19+
"unordered_set": "cpp",
20+
"vector": "cpp"
21+
}
22+
}

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,19 @@ In this case, run `node-gyp build --debug` or if using `npm install` run `npm_co
5151
There variables can also be set using npm set:
5252

5353
`npm config set [--global] DEBUG True`
54+
55+
## Develop with VS-Code
56+
57+
1. Install the [C++ Extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools)
58+
2. Install the [Cmake Tools Extension](https://marketplace.visualstudio.com/items?itemName=vector-of-bool.cmake-tools)
59+
3. Configure the LLVM directory in the user settings by adding the following entry
60+
61+
```json
62+
"cmake.configureSettings": {
63+
"LLVM_DIR": "/usr/local/Cellar/llvm/7.0.0/lib/cmake/llvm" // Output of llvm-config --cmakedir
64+
}
65+
```
66+
67+
4. Run the `CMake:Configure` Command in Visual Studio Code
68+
5. Run `yarn configure` from the command line
69+
6. Run `CMake:Build` command in Visual Studio Code

0 commit comments

Comments
 (0)