Skip to content

Instantly share code, notes, and snippets.

@LarsEckart
Created April 2, 2021 20:44
Show Gist options
  • Save LarsEckart/30a260267204941fe8317034426cde53 to your computer and use it in GitHub Desktop.
Save LarsEckart/30a260267204941fe8317034426cde53 to your computer and use it in GitHub Desktop.
md snippet live template for intellij
<template
name="snippet"
value="// begin-snippet: $SnippetName$&#10;$SELECTION$&#10;// end-snippet&#10;&#10;// use in .md file: snippet: $SnippetName$"
description="generate a code snippet"
toReformat="false"
toShortenFQNames="true">
<variable
name="SnippetName"
expression="&quot;MySnippetName&quot;"
defaultValue=""
alwaysStopAt="true" />
<context>
<option
name="JAVA_CODE"
value="true" />
</context>
</template>
@LarsEckart
Copy link
Author

We copied that out from Lars.xml which resides on my laptop under ~/Library/Application Support/JetBrains/IntelliJIdea2021.1/jba_config/templates and the top level element in that file is <templateSet group="Lars">.

@LarsEckart
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment