0
{
  "workbench.colorTheme": "Default Dark+",
  "python.linting.flake8Enabled": true,
  "python.linting.enabled": true,
  "python.formatting.provider": "black",
  "editor.formatOnSave": true,
  "files.associations": {
    "**/*.html": "html",
    "**/templates/**/*.html": "django-html",
    "**/templates/**/*": "django-txt",
    "**/requirements{/**,*}.{txt,in}": "pip-requirements"
  },
  "emmet.includeLanguages": {
    "django-html": "html"
  },
  "prettier.printWidth": 140,
  "prettier.tabWidth": 4,
  "prettier.singleQuote": true,
  "[jsonc]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  }
}

我已卸载 VSC 并从头开始进行设置。我不知道为什么格式化程序无法保存。当我在终端中格式化我的文件时它可以工作。

4

0 回答 0