hsnips
hsnips copied to clipboard
HyperSnips: a powerful snippet engine for VS Code, inspired by vim's UltiSnips
I can't use synchronize `.hsnips` files by `Setting Sync`. Can anyone solve this problem?
Say I have these snippets: ``` snippet $$$ "inline Math" iA $ $1 $`` let test = t[1][0]; console.log(t) if (test === undefined) { rv = ''; } else if...
Many of the `.hsnips` files shared publicly on [github](https://cs.github.com/?scopeName=All+repos&scope=&q=path%3A.hsnips) are very long and with many different types of functionality. I would like to seperate my `.hsnips` into categories such as:...
It would be useful, especially when writing latex with unicode characters, to use `\p{...}` to match a whole unicode category. For example, these useful unicode categories seem supported in javascript...
Hello, On creating a simple `cpp.hsnips` file: ``` snippet eq "equals" iA = endsnippet ``` and placing it in `C:\users\TryerGit\AppData\Roaming\Code\User\hsnips` folder and providing the following settings: "hsnips.hsnipsPath": "%APPDATA%\\Code\\User\\hsnips" in user...
 ``` global function deleteText(startline, startchar, endline, endchar) { let editor = vscode.window.activeTextEditor; let range = new vscode.Range(startline, startchar, endline, endchar); editor.edit(editBuilder => { editBuilder.delete(range); }); } function keepText(line, char)...
Snippet with specific regular expression triggers can't be triggered by specific strings satisfying regex. --- This is the first example I found:     --- In further testing...
I write a snippets: `snippet / "Fraction" iA` `\frac{$1}{$2}$0` `endsnippet` and : other snippets such as `snippet ee iA` `e^{$1}$0` `endsnippet` but when the frac snippet was not finished, I...
I'm not sure if hypersnips is supposed to allow for this or not but in the VSCode snippets you can add choices or placeholders to your tab stops like this:...
I would like so that after I complete a snipp, not to have the whitespace after it. For example, inside a block `\(\)` I type: `\(Sigma\)` But it gets completed...