Created
June 26, 2026 01:38
-
-
Save chokychou/f042dd1b29d877ca5253d2d0c255becb to your computer and use it in GitHub Desktop.
vscode settings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "recommendations": [ | |
| "llvm-vs-code-extensions.vscode-clangd" | |
| ], | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| // Global Python configuration | |
| "[python]": { | |
| // Auto format on save using Ruff | |
| "editor.formatOnSave": true, | |
| // Auto run all Ruff fixes and organize imports on save | |
| "editor.codeActionsOnSave": { | |
| "source.fixAll.ruff": "always", | |
| "source.organizeImports.ruff": "always" | |
| } | |
| }, | |
| // Enable basic type checking for the language server (Pyright) | |
| "python.analysis.typeCheckingMode": "basic", | |
| // Add path to find Bazel-generated Proto stubs | |
| // This allows "Go to Definition" and autocompletion to work for schema.proto.* | |
| "python.analysis.extraPaths": ["bazel-bin/proto_py_cache"], | |
| // Add path to autocomplete | |
| "python.autoComplete.extraPaths": ["bazel-bin/proto_py_cache"], | |
| // Trigger Mypy type-checking on save (requires Mypy extension) | |
| "mypy.runExport": "onSave", | |
| // Disable telemetry | |
| "telemetry.enableTelemetry": false, | |
| "telemetry.telemetryLevel": "off", | |
| "python.linting.pylintEnabled": true, | |
| "python.linting.enabled": true, | |
| "python.linting.mypyEnabled": false, | |
| "python.linting.pydocstyleEnabled": false, | |
| "python.linting.banditEnabled": true, | |
| "clangd.path": "clangd", | |
| "clangd.arguments": [ | |
| "--header-insertion=never", | |
| "--compile-commands-dir=${workspaceFolder}/", | |
| "--query-driver=**" | |
| ], | |
| "C_Cpp.default.cppStandard": "gnu++20", | |
| "C_Cpp.default.cStandard": "gnu++17" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "version": "2.0.0", | |
| "tasks": [ | |
| { | |
| "label": "Refresh compile_commands.json", | |
| "type": "shell", | |
| "command": "bazel", | |
| "args": ["run", "//:refresh_compile_commands"], | |
| "options": { | |
| "cwd": "${workspaceFolder}" | |
| }, | |
| "problemMatcher": ["$gcc"], | |
| "group": { | |
| "kind": "build", | |
| "isDefault": false | |
| }, | |
| "runOptions": { | |
| "runOn": "folderOpen" | |
| }, | |
| "presentation": { | |
| "reveal": "silent", | |
| "panel": "shared", | |
| "close": true | |
| } | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment