Skip to content
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

allow snippets to run regardless of language mode #7

Closed
Haroenv opened this issue Feb 19, 2017 · 2 comments
Closed

allow snippets to run regardless of language mode #7

Haroenv opened this issue Feb 19, 2017 · 2 comments
Assignees

Comments

@Haroenv
Copy link

Haroenv commented Feb 19, 2017

or maybe just add markdown? I don’t know the syntax, do I duplicate the entry or is there an “OR” syntax?

@edheltzel
Copy link
Owner

edheltzel commented Feb 19, 2017

Its just JSON if you wanna target multi language support you'll have to dig into the VSCode extension docs. Its doable and really should be pretty easy -- Time is just a little hard to come by for myself.

Here is the → API docs

@edheltzel
Copy link
Owner

edheltzel commented Feb 20, 2017

I went ahead and added the support to Markdown You can always turn it off inside of your workspace settings.
@Haroenv if you wanna clone the branch feature/#7-markdown-support to your .vscode/extensions path and try it out.
The snippets should work inside of markdown files. -- Let me know if that is what you're looking for?

If your issue is remembering to set liquid for HTML files, you could always include a .vscode/settings.json inside of you Jekyll projects so the editor does the setting for you.

This is what I've been using in my Jekyll projects.

{
  "files.exclude": {
    "**/.sass-cache/": true,
    "**/_site/": true
  },
  "files.associations": {
    "*.html": "liquid"
  },
  "search.exclude": {
    "**/.sass-cache/": true,
    "_site/**": true,
    ".vscode/**": true,
    "*.lock": true
  }
}

@edheltzel edheltzel self-assigned this Feb 20, 2017
@edheltzel edheltzel assigned edheltzel and unassigned edheltzel Jun 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants