Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

1.4K
Visualizações
How can I autocomplete both HTML and Django-HTML simultaneously in Visual Studio Code?

I've installed Django support in Visual Studio Code and associated */templates/*.html with django-html as the extension demands.

However, it can't auto-compete HTML Tags as I've done so.

And if I just associate HTML with itself, then it can't intellisense Django Template code.

How can I autocompleting both?

over 4 years ago · Santiago Trujillo
3 Respostas
Responde à pergunta

0

I managed to do it by:

  • installing the django extension

  • adding the following configuration to my workspace config.json file:

     "emmet.includeLanguages": { "django-html": "html", }
over 4 years ago · Santiago Trujillo Relatório

0

This is essentially the same solution, but using the VS Code UI, which may make it easier for some people, especially if you're new to this and your settings.json file hasn't been generated yet.

In VS Code go to File -> Preferences -> Settings

Once there, you can switch to the 'Workspace' tab if you want this setting to be for this project/workspace only, or stay with the 'User' tab if you want this across all projects/workspaces.

Open the 'Extensions' item in the list and click on 'Emmet'.

Under 'Include Languages', click the 'Add Item' button. Complete it with:

Element: django-html

value: html

and click the 'OK' button.

This will add the settings for you to your settings.json file, or generate a new settings.json file if you don't have one. Add django-html support to VS Code

Note: For autocomplete/generate to work, you may need to type your tag without the brackets, e.g. li (not <li> ), then press Enter to get <li></li>

over 4 years ago · Santiago Trujillo Relatório

0

As namespace_Pt said, I tried it and it works. I will list which extensions are in my Visual Studio Code installation.

  1. Django 1.2.0

  2. Visual Studio IntelliCode (I tried, and it works without this one)

        "emmet.includeLanguages": {
        "django-html": "html",
    }
    

I added it, at the end of the settings.json file. I find the file from the settings's search bar. Just undo what Visual Studio Code added itself and add the code above. Don't forget to add a comma.

Where you find the .json file in settings

How it looks like after I added it

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda