Skip to content

Instantly share code, notes, and snippets.

@undeadcat
Created March 29, 2018 15:07
Show Gist options
  • Save undeadcat/fdd710cde062bd510c6fbe33e6157bc2 to your computer and use it in GitHub Desktop.
Save undeadcat/fdd710cde062bd510c6fbe33e6157bc2 to your computer and use it in GitHub Desktop.
Intellij IDEA with styled-components: add injection for 'withProps' function
<LanguageInjectionConfiguration>
<injection language="LESS" injector-id="js">
<display-name>styled-components withProps</display-name>
<prefix>div {</prefix>
<suffix>}</suffix>
<place><![CDATA[stringTemplate().withParent(taggedTemplate(jsExpression().withChild(jsReferenceExpression().withNameStartingWith("withProps"))))]]></place>
</injection>
</LanguageInjectionConfiguration>
@undeadcat
Copy link
Author

image

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