Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

241
Views
Vscode con beautify no sangra las plantillas html de django

Estoy buscando formatear mis plantillas django de la misma manera que HTML.

Embellecer termina tratando mis plantillas como texto y no sangrando sus contenidos.

Por ejemplo, después de formatear mi código se ve así:

 <head> {% if title %} <title>Django Blog - {{ title }}</title> {% else %} <title>Django Blog</title> {% endif %} </head>

En lugar de

 <head> {% if title %} <title>Django Blog - {{ title }}</title> {% else %} <title>Django Blog</title> {% endif %} </head>

Actualmente tengo instaladas las extensiones Beautify & Django, ejecutándose en VSCode y WSL.

settings.json VSCode:

 "files.associations": { "**/*.html": "html", "**/templates/*/*.html": "django-html", "**/templates/*": "django-txt", "**/requirements{/**,*}.{txt,in}": "pip-requirements" }, "emmet.includeLanguages": { "django-html": "html" }, "beautify.language": { "html": [ "htm", "html", "django-html" ] }, "[django-html]": { "editor.defaultFormatter": "HookyQR.beautify" }

¿Por qué beautify no formatea o sangra correctamente mis plantillas? ¿Cómo puedo resolver este comportamiento?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Simplemente puede hacer clic con el botón derecho en el archivo HTML y hacer clic en formato; automáticamente identificará su archivo. En realidad, esta extensión hace que la función de identificación automática de vscode esté activa, pero aún así debe hacerlo manualmente.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!