| { |
| // Global settings |
| "editor.detectIndentation": false, |
| "editor.rulers": [80], |
| "editor.tabSize": 2, |
| "files.associations": { |
| "*.inc": "cpp" |
| }, |
| "files.exclude": { |
| "**/*.egg-info": true, |
| "**/.mypy_cache": true, |
| "**/__pycache__": true, |
| ".cache": true, |
| ".cipd": true, |
| ".environment": true, |
| ".presubmit": true, |
| ".pw_ide": true, |
| ".pw_ide.user.yaml": true, |
| "bazel-bin": true, |
| "bazel-out": true, |
| "bazel-pigweed": true, |
| "bazel-testlogs": true, |
| "build": true, |
| "environment": true, |
| "node_modules": true, |
| "out": true |
| }, |
| "files.insertFinalNewline": true, |
| "files.trimTrailingWhitespace": true, |
| "search.useGlobalIgnoreFiles": true, |
| |
| // Integrated terminal settings |
| "terminal.integrated.env.linux": { |
| "CIPD_CACHE_DIR": "${userHome}/.cipd-cache-dir", |
| "PATH": "${workspaceFolder}/out/host/host_tools:${workspaceFolder}/environment/pigweed-venv/bin:${workspaceFolder}/environment/cipd/packages/luci:${workspaceFolder}/environment/cipd/packages/bazel:${workspaceFolder}/environment/cipd/packages/python/bin:${workspaceFolder}/environment/cipd/packages/python:${workspaceFolder}/environment/cipd/packages/arm/bin:${workspaceFolder}/environment/cipd/packages/arm:${workspaceFolder}/environment/cipd/packages/pigweed/bin:${workspaceFolder}/environment/cipd/packages/pigweed:${workspaceFolder}/environment/cipd:${env:PATH}", |
| "PW_ARM_CIPD_INSTALL_DIR": "${workspaceFolder}/environment/cipd/packages/arm", |
| "PW_BAZEL_CIPD_INSTALL_DIR": "${workspaceFolder}/environment/cipd/packages/bazel", |
| "PW_CIPD_INSTALL_DIR": "${workspaceFolder}/environment/cipd", |
| "PW_DEFAULT_CIPD_INSTALL_DIR": "${workspaceFolder}/environment/cipd/packages/default", "PW_LUCI_CIPD_INSTALL_DIR": "${workspaceFolder}/environment/cipd/packages/luci", |
| "PW_PACKAGE_ROOT": "${workspaceFolder}/environment/packages", |
| "PW_PIGWEED_CIPD_INSTALL_DIR": "${workspaceFolder}/environment/cipd/packages/pigweed", |
| "PW_PROJECT_ROOT": "${workspaceFolder}/.", |
| "PW_PYTHON_CIPD_INSTALL_DIR": "${workspaceFolder}/environment/cipd/packages/python", |
| "PW_ROOT": "${workspaceFolder}/.", |
| "VIRTUAL_ENV": "${workspaceFolder}/environment/pigweed-venv", |
| "_PW_ACTUAL_ENVIRONMENT_ROOT": "${workspaceFolder}/environment", |
| "_PW_ENVIRONMENT_CONFIG_FILE": "${workspaceFolder}/pw_env_setup/config.json", |
| "_PW_ROSETTA": "1" |
| }, |
| "terminal.integrated.env.osx": { |
| "CIPD_CACHE_DIR": "${userHome}/.cipd-cache-dir", |
| "PATH": "${workspaceFolder}/out/host/host_tools:${workspaceFolder}/environment/pigweed-venv/bin:${workspaceFolder}/environment/cipd/packages/luci:${workspaceFolder}/environment/cipd/packages/bazel:${workspaceFolder}/environment/cipd/packages/python/bin:${workspaceFolder}/environment/cipd/packages/python:${workspaceFolder}/environment/cipd/packages/arm/bin:${workspaceFolder}/environment/cipd/packages/arm:${workspaceFolder}/environment/cipd/packages/pigweed/bin:${workspaceFolder}/environment/cipd/packages/pigweed:${workspaceFolder}/environment/cipd:${env:PATH}", |
| "PW_ARM_CIPD_INSTALL_DIR": "${workspaceFolder}/environment/cipd/packages/arm", |
| "PW_BAZEL_CIPD_INSTALL_DIR": "${workspaceFolder}/environment/cipd/packages/bazel", |
| "PW_CIPD_INSTALL_DIR": "${workspaceFolder}/environment/cipd", |
| "PW_DEFAULT_CIPD_INSTALL_DIR": "${workspaceFolder}/environment/cipd/packages/default", |
| "PW_LUCI_CIPD_INSTALL_DIR": "${workspaceFolder}/environment/cipd/packages/luci", |
| "PW_PACKAGE_ROOT": "${workspaceFolder}/environment/packages", |
| "PW_PIGWEED_CIPD_INSTALL_DIR": "${workspaceFolder}/environment/cipd/packages/pigweed", |
| "PW_PROJECT_ROOT": "${workspaceFolder}/.", |
| "PW_PYTHON_CIPD_INSTALL_DIR": "${workspaceFolder}/environment/cipd/packages/python", |
| "PW_ROOT": "${workspaceFolder}/.", |
| "VIRTUAL_ENV": "${workspaceFolder}/environment/pigweed-venv", |
| "_PW_ACTUAL_ENVIRONMENT_ROOT": "${workspaceFolder}/environment", |
| "_PW_ENVIRONMENT_CONFIG_FILE": "${workspaceFolder}/pw_env_setup/config.json", |
| "_PW_ROSETTA": "1" |
| }, |
| |
| // Disable task auto detection |
| "grunt.autoDetect": "off", |
| "gulp.autoDetect": "off", |
| "jake.autoDetect": "off", |
| "npm.autoDetect": "off", |
| "typescript.tsc.autoDetect": "off", |
| |
| // Build systems settings |
| "[gn]": { |
| "editor.defaultFormatter": "msedge-dev.gnls" |
| }, |
| |
| // C/C++ settings |
| "clangd.path": "${workspaceFolder}/.pw_ide/clangd", |
| "clangd.arguments": [ |
| "--background-index", |
| "--clang-tidy", |
| "--compile-commands-dir=${workspaceFolder}/.pw_ide" |
| ], |
| "clangd.onConfigChanged": "restart", |
| "C_Cpp.intelliSenseEngine": "Disabled", |
| "[cpp]": { |
| "editor.defaultFormatter": "llvm-vs-code-extensions.vscode-clangd" |
| }, |
| |
| // Python settings |
| "python.defaultInterpreterPath": "${workspaceFolder}/.pw_ide/python", |
| "python.envFile": "${workspaceFolder}/.vscode/.env", |
| "python.formatting.provider": "yapf", |
| "python.formatting.yapfPath": "${workspaceFolder}/.pw_ide/python-bin/yapf", |
| "[python]": { |
| "editor.tabSize": 4 |
| }, |
| |
| // Other languages settings |
| "[proto3]": { |
| "editor.defaultFormatter": "zxh404.vscode-proto3" |
| }, |
| "[restructuredtext]": { |
| "editor.quickSuggestions": { |
| "comments": "off", |
| "strings": "off", |
| "other": "off" |
| } |
| } |
| } |