Skip to content

Latest commit

 

History

History
68 lines (62 loc) · 1.46 KB

vscode.md

File metadata and controls

68 lines (62 loc) · 1.46 KB

Visual Studio Code

Settings

Recommended .vscode/settings.json:

{
  "[c]": {
    "files.encoding": "utf8",
    "editor.defaultFormatter": "xaver.clang-format"
  },
  "[cpp]": {
    "files.encoding": "utf8",
    "editor.defaultFormatter": "xaver.clang-format"
  },
  "[python]": {
    "editor.defaultFormatter": "ms-python.black-formatter"
  },
  "files.insertFinalNewline": true,
  "files.trimFinalNewlines": true,
  "files.associations": {
    "*.inc": "cpp",
  },
  "search.useIgnoreFiles": false,
  "search.exclude": {
    "build/*/config.json": true,
    "build/**/*.MAP": true,
    "build.ninja": true,
    ".ninja_*": true,
    "objdiff.json": true,
  }
}

C/C++ configuration

Recommended .vscode/c_cpp_properties.json:

{
    "configurations": [
        {
            "name": "Linux",
            "includePath": [
                "${workspaceFolder}/include/**",
                "${workspaceFolder}/src/**"
            ],
            "cStandard": "c99",
            "cppStandard": "c++98",
            "intelliSenseMode": "linux-clang-x86",
            "compilerPath": "",
            "configurationProvider": "ms-vscode.makefile-tools",
            "browse": {
                "path": [
                    "${workspaceFolder}/include",
                    "${workspaceFolder}/src"
                ],
                "limitSymbolsToIncludedHeaders": true
            }
        }
    ],
    "version": 4
}