Created
May 11, 2020 19:16
-
-
Save thedavecarroll/37364ffcd65827ed2ea7252d12fc8a1b to your computer and use it in GitHub Desktop.
Markdown Snippet for Visual Studio Code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// insert markdown links | |
"Insert Link" : { | |
"prefix": "link", | |
"body": [ | |
"[text][text]{:target=\"_blank\"}" | |
] | |
}, | |
"Insert Reference" : { | |
"prefix": "ref", | |
"body": "[text]:" | |
}, | |
"Insert Image Link" : { | |
"prefix": "img", | |
"body": "![LINK_TEXT](/assets/images/.png \"ALT_TEXT\")" | |
}, | |
// escape double curly braces in liquid markdown | |
"Raw Start" : { | |
"prefix": "raws", | |
"body": "{% raw %}" | |
}, | |
"Raw End" : { | |
"prefix": "rawe", | |
"body": "{% endraw %}" | |
}, | |
// insert various minimial-mistakes classes | |
"Notice" : { | |
"prefix": "!", | |
"body": "{: .notice}" | |
}, | |
"Warning" : { | |
"prefix": "!w", | |
"body": "{: .notice--warning}" | |
}, | |
"Info" : { | |
"prefix": "!i", | |
"body": "{: .notice--info}" | |
}, | |
"Danger" : { | |
"prefix": "!d", | |
"body": "{: .notice--danger}" | |
}, | |
"Success" : { | |
"prefix": "!s", | |
"body": "{: .notice--success}" | |
}, | |
"Center" : { | |
"prefix": "=", | |
"body": "{: .text-center}" | |
}, | |
"Left" : { | |
"prefix": "<", | |
"body": "{: .text-left}" | |
}, | |
"Right" : { | |
"prefix": ">", | |
"body": "{: .text-right}" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I blog using
Jekyll
, a Ruby-based site generator and theminimal-mistakes
theme. I often forget how to insert a notice class or how to make a link open in a new browser.Today, I added the above file to my user snippets to my Visual Studio Code.
To use it, type the
prefix
listed in the file and then CTL+SPACE.When you see your snippet in the list, just hit enter.
Pretty simple.
You can change the prefix to anything that is meaningful to you.
Leave a comment if you like this gist.
Thanks for reading!