Is there a way to have a proper django syntax highlight in vscode when using django template tag in a tag in templates ?
Question posted in Visual Studio Code
View the official documentation.
View the official documentation.
Is there a way to have a proper django syntax highlight in vscode when using django template tag in a tag in templates ?
2
Answers
Well, i would say just download the Django extension from Baptiste Darthenay. From what I’ve seen it and what I’ve understand it’s what you are looking for.
Like @HotTeaPot said, I would recommend
vscode-django
extension by Baptiste Darthenay for syntax highlighting and snippets along withdjlint
for formatting.You can ignore errors through a .djlintrc file.
Include the snippet below in your USER settings.json to extend html emmet-completions in django-html.
Happy coding!!!