@WebStormIDE hey JB, how can I make a template apply to code comments? i.e., "/**" creates a comment block based on a template I have.
-
-
Replying to @jroseattle
You can create a new Live template in Preferences | Editor | Live Templates. btw /**+Enter before the function will generate a JSDoc comment
1 reply 0 retweets 0 likes -
Replying to @WebStormIDE
Great thank you. Anyway to supersede /** as a way of initiating a live template?
1 reply 0 retweets 0 likes -
Replying to @jroseattle
Every Live template has an abbreviation that you have to type (in your case it will be /**) and then you have to hit Tab to expand it.
2 replies 0 retweets 0 likes -
Replying to @WebStormIDE
Tried that but it didn't work. I set as the abbreviation. Is that correct?
1 reply 0 retweets 0 likes -
Replying to @jroseattle
Here's an example: this Live Template will work in the JavaScript code when you type /** and hit Tabpic.twitter.com/uaTPVbcGzW
1 reply 0 retweets 0 likes -
Replying to @WebStormIDE @jroseattle
Like this:pic.twitter.com/A0HVkO6u2a
1 reply 0 retweets 0 likes -
Replying to @WebStormIDE
Yes, that's exactly what I expected -- just not working for me.
1 reply 0 retweets 0 likes
:( Can you please send us a screenshot of the template you've created? Here or DM us. Or contact our support https://intellij-support.jetbrains.com/hc/en-us/requests/new …
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.