0%

Custom snippets in VSCode

Just tried the snippet in VSCode, it’s easy and has the potential to replace atext, given that aText does not work as expected.
This is how it looks,

1
2
3
4
5
6
7
8
9
"Layout the notepad": {
"prefix": "ddt",
"body": [
"## WHAT I DID",
"- $0",
"## WHAT I WAS THINKING",
"-"
],
"description": "layout the markdown diary"

$0 is where the final cursor is;

In this way, I can layout my diary by typing just ddt.

1
2
3
4
## WHAT I DID
-
## WHAT I WAS THINKING
-
  • Post author: Dali Khan
  • Post link: https://yiti.ml/xx035/
  • Copyright Notice: All articles in this blog are licensed under BY-NC-SA unless stating additionally.

Welcome to my other publishing channels