Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Autocomplete scala match case in Intellij

in the past I had intellij do awsome autocomplete of cases when matching any sealed trait (e.g. Option) but can't get it to work on my new setup and can't find anything online, any ideas on where to look, what is the setting name etc?

like image 721
V-Lamp Avatar asked Oct 19 '25 05:10

V-Lamp


1 Answers

I missed this feature, it used to work by pressing Alt+Enter then selecting "Generate case clauses"

Now you can achieve the same while typing myValue mat... then you can choose match (exhaustive)

like image 183
bmateusz Avatar answered Oct 21 '25 19:10

bmateusz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!