-
Notifications
You must be signed in to change notification settings - Fork 20
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
Hugo snippets in non hugo files #11
Comments
Hi @maciejcieslik Maybe you can give me some information on your version? For me, HTML comments are the usual HTML comments. |
VSCode version: 1.38.1 |
I see what you're saying. Being that Hugo templates are in HTML, I'm not sure that's possible. However, the way I make comments in HTML is |
Plugin should have configurable shortcuts - now it is with conflict with default vscode shortcut or add hugo snippets only in hugo projects, not all html files. |
Thanks, @maciejcieslik We'd really welcome a PR on this. |
If you like this extension's code highlighting, but would prefer to disable the snippets, use the Control Snippets extension.
|
Another option is to disable (not uninstall) this extension, then enable it for one or more workspaces as needed. Details here... |
This feels like the best overall guidance, although I'm totally open to being proven wrong... Given that one would want a hugo-scoped-editor-enhancer to be able to decorate/alter potentially any file within hugo's ability to consume, this plugins' filetype constrains aught be pretty lax and its applicability pretty universal within those contexts... Might it be beneficial to this stance it a step further? IE: have this plugin disable itself globally by default, and have a blob of 'add this to a hugo project's Mindset being something along the lines of:
or I spoze this could be a terrible idea / waste of everyones' time... ¯\_(ツ)_/¯ |
Snippets shouldn't work in any html file but only in hugo project. Now it is unusable because in other project it get in other snippets' way - for example comment snippets - in html should be {{/**/}}
The text was updated successfully, but these errors were encountered: