We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
"fffff": { "prefix": "ffff", "body": [ "- (${1:void})${2:methodName}{", "${1/void$|(.+)/(?1:\n\treturn nil;)/}", "}" ] },
?1:
The text was updated successfully, but these errors were encountered:
Would need for conditional insertions which is something we don't have, see :https://manual.macromates.com/en/regular_expressions#conditional_insertions.html
Sorry, something went wrong.
https://macromates.com/manual/en/regular_expressions#conditional_insertions
I'm confused, how do the linked textmate conditional insertions differ from the conditional replacements that vscode snippets already have:
| '${' int ':+' if '}' | '${' int ':?' if ':' else '}' | '${' int ':-' else '}' | '${' int ':' else '}'
The original question can be achieved with:
"${1/(void$)|(.+)/${1:+\n\treturn nil;}$2/}", // although it isnt clear if that last `$2` is desired, I'm guessing it is
jrieken
No branches or pull requests
?1:
in the editor...The text was updated successfully, but these errors were encountered: