@jetbrains how do you capitalize one instance of a variable in a Live Template? Would like the second instance of $1$ to be capitalized but not first.
const [$1$, set$1$] = React.useState($3$)
use "capitalize(String)" to capitalize the parameter and "firstWord()" to apply other actions to the first word only. See https://bit.ly/327UPCo as a reference.
-
-
I'm not understanding. I think i would need to reference $1$ in the Edit Template Variables dialog but i don't think that's possible. Want to end up with this after just typing "foobar" const [foobar, setFoobar] = React.useState()
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.