Anyone know if there's an intellij shortcut to gen...
# compose
c
Anyone know if there's an intellij shortcut to generate
val blah by remember { mutableStateOf() }
or do I need to look up how to create my own ide autofill action (i forget what its called)
m
it is called Live template, and you can make a new one very easily
c
do you know any tricks for creating one easily? seems like its like 5 steps at least. or is there some shortcut I don't know about? seems like you have to do this at least
Copy code
1.	Go to Preferences/Settings → Editor → Live Templates.
	2.	Click + (add), then choose Template Group or Live Template.
	3.	Define your Abbreviation, Template text, and Description.
	4.	Set Context (e.g., Kotlin, Java, XML).
	5.	Click OK.
but id love to write a line. hit alt enter and "create live template".
m
not that I'm aware of but quickly searching through keymap for "live template" in AS gave me "Save as live template" action with description "Save the selected text as live template" which might be the shortcut you're looking for
c
oh heck yeah. Thanks @MR3Y! setup a shortcut for shift + ctl + cmd + t. and now i selected text, keyboard combo. enter. done! BOO YAH
🎉 1
CleanShot 2024-09-20 at 16.58.14@2x.png
🎉 4