Home > other >  Snippet with prefix "``" (double backtick) not working for inline Markdown code block
Snippet with prefix "``" (double backtick) not working for inline Markdown code block

Time:06-20

For writing inline Markdown code blocks quickly, I want to use the following snippet:

"prefix": "``",
"body": ["`$1` $2"],

This snippet would enable me to just tab through the code block. The snippet however does not trigger when using ``.

If I try to escape the backticks with backslashes, the prefix ends up empty and doesn't work either.

"prefix": "\`\`",
"body": ["`$1` $2"],

enter image description here

Is it possible to use `` as a prefix?

CodePudding user response:

I found an explanation for why backticks work as a prefix but the snippet suggestion must be manually triggered with Ctr/ space.

From demo of using backticks as a prefix in a snippet

  • Related