-
Notifications
You must be signed in to change notification settings - Fork 30.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add jinja2 to the lib/snippets.json file for emmet support #15021
Comments
It's an easy one, @MortalCatalyst you want to give it a try? |
Hello, @MortalCatalyst, After the release of version 1.6.0 VS Code has support for all languages that are supported by Emmet. Now you can: Create your own pluginYou can convert an existing solution, for example, https://atom.io/packages/atom-jinja2 or https://github.com/antal-bukos/sublimetext3_jinja2_syntax. Just convert Most importantly, don't forget to check out the scope of language: tmLanguage <key>scopeName</key>
<string>text.html.jinja</string> // or jinja2 json "scopeName": "text.html.jinja" // or jinja2 Configure editorYou can use "files.associations": {
"*.j2": "html"
} |
How can I help the author of the already existing jinja plugin https://marketplace.visualstudio.com/items?itemName=wholroyd.jinja It seems the only thing I needed to do was to add "files.associations": {
"*.j2": "html"
} to my user settings is there a way the plugin can implement that by default? |
Either way I have added snippets support to the vscode repo https://github.com/wholroyd/vscode-jinja/pull/10 |
Closing as upstream |
In #9500 it references that support for extra languages in emmet are available in the lib/snippets.json file. What would need to be done to add jinja2 as a listed member of that array so that available extensions could utilise emmet jinja2 together.
Has a significant use case with Flask, Ansible, Pyramid etc as one of the most significant templating languages in python.
The text was updated successfully, but these errors were encountered: