Adding Custom Snippets
You can add custom snippets whilst the default set of snippets are decided by following the below steps:
Cmd
+Shift
+P
(Ctrl
+Shift
+P
for Windows), typesnippets
and selectPreferences: Configure User Snippets
.- The command palette will remain in focus. Search for
markdown
and select the entry entitledmarkdown.json (Markdown)
. - A JSON file will open. You can author your own snippets using the documentation to help you, or if you're using a snippet shared by another Foam user then you can copy and paste it in, as the below GIF demonstrates:
To get started, you might consider replacing the entire contents of the markdown.json
file opened by the steps above with the JSON in this comment.
Backlinks
Pre-defined User Snippets
Using snippets enables Foam users to add [[custom-snippets]] themselves so they live alongside the first-class `/commands`.