Using IntelliJ when i type try followed by Ctrl-Space (autocomplete), i get nothing added
Instead, i’d like to see
try {
// do something great
} catch {
case e: Exception => // handle me
}
Language is Scala, if this matters.
How can i define autocomplete pattern as shown above?
Use the surround templates:
You can find more details in help: