V S 代码 V1.31 emmet intellisense 不适用于 Python/Django 扩展

V S code V1.31 emmet intellisense not working with Python/Django Extensions

我最近安装了 Visual Studio Code 1.31.0,还安装了 python 和 django 扩展。当我试图创建新的 HTML 文件并输入 "html" 时,它没有显示在 emmet 响应中,经过一番努力,当我卸载 python 和 django 扩展时,一切恢复正常。

关于如何让 emmet 使用 python 和安装的 django 扩展的任何帮助?

Django extension for Visual Studio Code

如上述 link 的描述所述,您必须在设置文件中输入以下代码。

"files.associations": {
"**/templates/*.html": "django-html",
"**/templates/*": "django-txt",
"**/requirements{/**,*}.{txt,in}": "pip-requirements"},
"emmet.includeLanguages": {"django-html": "html"},
  1. 按以下路径打开 settings.json:

%APPDATA%\Code\User\settings.json

  1. 编辑文件如下:
{
  "files.associations": {
      "**/*.html": "html",
      "**/templates/**/*.html": "django-html",
      "**/templates/**/*": "django-txt",
      "**/requirements{/**,*}.{txt,in}": "pip-requirements"
  },
    "workbench.editorAssociations": [
        {
            "viewType": "jupyter.notebook.ipynb",
            "filenamePattern": "*.ipynb"
        }
    ],
    "emmet.includeLanguages": {
        "django-html": "html"
    },
    "emmet.excludeLanguages": [
    
        "markdown"
    ]
  
}