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"
  }
}

I have uninstalled VSC and set it up from beginning. I don't know why formatter is not working on save. It works when I format my file in terminal.

martineau
  • 119,623
  • 25
  • 170
  • 301
  • Is your **Prettier** extension working for `.jsonc` files when you format them? – JΛYDΞV Dec 27 '21 at 16:35
  • they prettier is able to format json file too – insub kim Dec 27 '21 at 19:13
  • It's weird, could you open the `OUTPUT` panel and choose `Python` channel. Then save the file again to get the outputs? And could you verify whether you have modified the path of `black` in the User settings.json file? – Steven-MSFT Dec 28 '21 at 07:44

0 Answers0