From 460d570c28c5e028649bc6c87d0fb64df84ce99d Mon Sep 17 00:00:00 2001 From: Liu Chao Date: Sat, 31 Mar 2018 21:40:24 +0800 Subject: [PATCH] chore: add vscode config files --- .vscode/c_cpp_properties.json | 27 +++++++++++++++++++++++++++ .vscode/settings.json | 26 ++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 .vscode/c_cpp_properties.json create mode 100644 .vscode/settings.json diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json new file mode 100644 index 00000000..dbe8686a --- /dev/null +++ b/.vscode/c_cpp_properties.json @@ -0,0 +1,27 @@ +{ + "configurations": [ + { + "name": "Linux", + "intelliSenseMode": "clang-x64", + "includePath": [ + "${workspaceRoot}/include", + "/usr/include/x86_64-linux-gnu", + "/usr/include/linux", + "/usr/local/include" + ], + "browse": { + "path": [ + "${workspaceRoot}", + "${workspaceRoot}/include", + "/usr/include/x86_64-linux-gnu", + "/usr/include/linux", + "/usr/local/include" + ] + }, + "compilerPath": "/usr/bin/clang", + "cStandard": "c11", + "cppStandard": "c++17" + } + ], + "version": 3 +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 00000000..23642efd --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,26 @@ +{ + "editor.formatOnSave": true, + "editor.rulers": [ + 78, + 80 + ], + "files.exclude": { + "**/*.lo": true, + "**/*.o": true, + "**/*.gcno": true + }, + "[c]": { + "editor.tabSize": 8, + "editor.insertSpaces": false + }, + "[cpp]": { + "editor.tabSize": 8, + "editor.insertSpaces": false + }, + "files.associations": { + "unistd.h": "c", + "errno.h": "c", + "fcntl.h": "c", + "metrics.h": "c" + } +} \ No newline at end of file