Plugin is updated.
Big rework by @OlehL:
+ new command "Install VSCode snippets..." - to install snippets from VS Code Marketplace
+ new command "Delete snippet markers" - clears all markers in the current editor tab
+ reworked snippets engine to support VS Code snippets
+ now you can insert snippet in another snippet
+ improved work with placeholders ${}, now placeholders can be nested
"Install VSCode snippets" shows new dialog:
Menu from '=' button allows to change some filter options:
- fuzzy
- whole words search
- search in title or description
After you choose the set by Enter/dbl-click, additional dialog shows to choose CudaText lexer(s) for VSCode lexer:
VSCode snippets are installed to data/snippets_vs/ dir.
plugin Snippets: now supports snippets from VS Code editor
-
- Posts: 392
- Joined: 01.12.2020 13:46
-
- Posts: 392
- Joined: 01.12.2020 13:46
For me multiline snippets do not respect indentation (first line will appear properly at the caret position, but the other ones will be at the line start). Is it my fault?
Multiline snippet example
Multiline snippet example
Code: Select all
"for": {
"body": [
"for(int i = 0; i < ${1}; i++){\n\t\n}"
],
"prefix": [
"for"
]
},
-
- Posts: 392
- Joined: 01.12.2020 13:46
OlehL suggested to rework this snippet, to fix it
https://github.com/OlehL/cuda_snippets/issues/35
So it's solved?
https://github.com/OlehL/cuda_snippets/issues/35
So it's solved?
-
- Posts: 392
- Joined: 01.12.2020 13:46