Skip to content
Snippets Groups Projects
settings.json 1.87 KiB
Newer Older
Xuefeng Ding's avatar
Xuefeng Ding committed
{
Xuefeng Ding's avatar
Xuefeng Ding committed
  "editor.rulers": [88],
  "editor.defaultFormatter": "esbenp.prettier-vscode",
  "editor.formatOnSave": true,
Xuefeng Ding's avatar
Xuefeng Ding committed
  "[python]": {
    "editor.codeActionsOnSave": {
Xuefeng Ding's avatar
Xuefeng Ding committed
      "source.fixAll": "explicit",
      "source.organizeImports": "explicit"
Xuefeng Ding's avatar
Xuefeng Ding committed
    },
Xuefeng Ding's avatar
Xuefeng Ding committed
    "editor.defaultFormatter": "charliermarsh.ruff"
Xuefeng Ding's avatar
Xuefeng Ding committed
  },
Xuefeng Ding's avatar
Xuefeng Ding committed
  "notebook.codeActionsOnSave": {
    "notebook.source.fixAll": "explicit",
    "notebook.source.organizeImports": "explicit"
  },
  "notebook.formatOnSave.enabled": true,
  "notebook.lineNumbers": "on",
Xuefeng Ding's avatar
Xuefeng Ding committed
  "[cpp]": {
    "editor.defaultFormatter": "llvm-vs-code-extensions.vscode-clangd"
  },
Xuefeng Ding's avatar
Xuefeng Ding committed
  "[cmake]": {
    "editor.defaultFormatter": "josetr.cmake-language-support-vscode"
  },
Xuefeng Ding's avatar
Xuefeng Ding committed
  "[toml]": {
    "editor.defaultFormatter": "tamasfe.even-better-toml"
  },
Xuefeng Ding's avatar
Xuefeng Ding committed
  "clangd.arguments": [
    "--log=info",
    "--pretty",
    "--all-scopes-completion",
    "--completion-style=bundled",
    "--header-insertion=iwyu",
    "--header-insertion-decorators",
    "--background-index",
    "--clang-tidy",
    "-j=20",
    "--pch-storage=disk",
    "--function-arg-placeholders=false",
    "--compile-commands-dir=build"
  ],
Xuefeng Ding's avatar
Xuefeng Ding committed
  "clangd.path": "clangd-17",
  "jupyter.debugJustMyCode": false,
Xuefeng Ding's avatar
Xuefeng Ding committed
  "debugpy.debugJustMyCode": false,
Xuefeng Ding's avatar
Xuefeng Ding committed
  "ruff.fixAll": true,
  "python.defaultInterpreterPath": ".venv/bin/python",
Xuefeng Ding's avatar
Xuefeng Ding committed
  "python.testing.pytestEnabled": true,
Xuefeng Ding's avatar
Xuefeng Ding committed
  "python.testing.unittestEnabled": false,
  "python.analysis.autoFormatStrings": true,
  "python.analysis.autoImportCompletions": true,
  "python.analysis.completeFunctionParens": true,
  "python.analysis.inlayHints.functionReturnTypes": true,
  "python.analysis.inlayHints.pytestParameters": true,
  "python.analysis.inlayHints.variableTypes": true,
  "python.analysis.typeCheckingMode": "strict",
Xuefeng Ding's avatar
Xuefeng Ding committed
  "python.analysis.extraPaths": ["${workspaceFolder}/python"],
  // "docker.host": "unix:///run/user/1000/podman/podman.sock"
  "dev.containers.dockerPath": "podman"
Xuefeng Ding's avatar
Xuefeng Ding committed
}