-
Notifications
You must be signed in to change notification settings - Fork 24
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 "context" by regex #47
Comments
and context does not work in the new version 😂. I don't know how to make it work. |
Hi there, I'll suppose you're using LaTeX, if you're using markdown, please let me know. If that is the case, the example given in the Here we define two automatic snippets,
Now let me explain how it works:
In this case, suppose we just typed {
scopes: [
"support.class.math.block.environment.latex",
"meta.math.block.latex",
"text.tex.latex",
]
} which in turn will call the More generally, you can see the Implementing context like this is more general, as we are not only restricted to math blocks inside LaTeX documents, we could create a If you have any further doubts about how to use contexts please let me know, I'll be closing this issue now. 🙂 |
Thanks for that! However I'm very sorry because I'm using markdown😂. Through
provided by extension "markdown all in one". I only changed
, but nothing had happened🤔. Anyway the explanation is great, thanks!😀 |
Personally, I'd use |
I see the issue now, it seems to be an issue in the |
Should be fixed on the latest |
thanks! I will try it later |
my friend from NJU gives a method to add math context. He uses regex to achieve that.
https://github.com/OrangeX4/hsnips
He add this code into
extension.ts
:and changes something in other files. You can add a flag
m
add use that, like:we can find the extension "hypersnips for math" in VSCode market.
(I 'm not so familiar with Enelish🤣🤣🤣)
The text was updated successfully, but these errors were encountered: