zardoy / vscode-better-snippets

Create most advanced snippets for VSCode in existence
https://marketplace.visualstudio.com/items?itemName=zardoy.better-snippets
MIT License
6 stars 0 forks source link

feat: other lines #9

Closed zardoy closed 2 years ago

zardoy commented 2 years ago

feat: ### Introduce new snippet constrain! Meet otherLines Until now, we had only lineRegex and lineHasRegex snippet constrain. Both received regex and can be used to filter out snippets by matching regex against current line. Now you have the same thing to for any other line as well! The most powerful thing is that you can also match regex against line with indentation up. More docs and examples are coming soon, however active usage of that feature theoretically can slowdown weak computors. feat: Builtin useParam snippet now use otherLines constrain with function|=>|React.FC regex on indentation above. If you feel some slowdown for you or just want to make your configured version, you can disable this snippet (see below). Also we removed sortText. This all can be breaking behavior for some use cases, however, the main intention was to just make it less annoying on every single line. feat: Add experimental way to completely disable some builtin snippets via specifying experimental.disableBuiltinSnippets array as names.

MARK AS BETA/UNSTABLE!