Skip to content

Instantly share code, notes, and snippets.

@chabala
Created March 17, 2017 19:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chabala/689f5e41dd760c968580820d2dcac52d to your computer and use it in GitHub Desktop.
Save chabala/689f5e41dd760c968580820d2dcac52d to your computer and use it in GitHub Desktop.
IntelliJ IDEA Live Templates for working with ScalaTest
<templateSet group="surround">
<template name="desc" value="describe(&quot;$END$&quot;) {&#10; $SELECTION$&#10;}&#10;" description="Surround with describe block" toReformat="true" toShortenFQNames="true">
<context>
<option name="SCALA_STRING" value="false" />
<option name="SCALA_COMMENT" value="false" />
<option name="SCALA_XML" value="false" />
<option name="SCALA" value="true" />
</context>
</template>
<template name="it" value="it(&quot;should $END$&quot;) {&#10; $SELECTION$&#10;}&#10;" description="Surround with it block" toReformat="true" toShortenFQNames="true">
<context>
<option name="SCALA_STRING" value="false" />
<option name="SCALA_COMMENT" value="false" />
<option name="SCALA_XML" value="false" />
<option name="SCALA" value="true" />
</context>
</template>
</templateSet>
@chabala
Copy link
Author

chabala commented Mar 17, 2017

Quickly generate new describe() and it() blocks, optionally by surrounding existing code. Install in your template directory as described here: https://www.jetbrains.com/help/idea/2016.3/sharing-live-templates.html

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