Last active
February 2, 2024 07:19
-
-
Save ozio/809a3519551ab56b46e0dc52dd267e47 to your computer and use it in GitHub Desktop.
IntelliJ Idea useState live template
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
<template name="rus" value="const [$CONSTANT$, set$CAPITALIZED_CONSTANT$] = useState(default$CAPITALIZED_CONSTANT$$END$);" description="Create useState" toReformat="false" toShortenFQNames="true"> | |
<variable name="CONSTANT" expression="" defaultValue="" alwaysStopAt="true" /> | |
<variable name="CAPITALIZED_CONSTANT" expression="capitalize(CONSTANT)" defaultValue="" alwaysStopAt="false" /> | |
<context> | |
<option name="JAVA_SCRIPT" value="true" /> | |
<option name="TypeScript" value="true" /> | |
</context> | |
</template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Copy this template to clipboard, then go to Preferences → Editor → Live Templates.