Created
March 17, 2017 19:34
-
-
Save chabala/689f5e41dd760c968580820d2dcac52d to your computer and use it in GitHub Desktop.
IntelliJ IDEA Live Templates for working with ScalaTest
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
<templateSet group="surround"> | |
<template name="desc" value="describe("$END$") { $SELECTION$ } " 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("should $END$") { $SELECTION$ } " 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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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