The Unicode operator \u21D2
"⇒
" (sometimes writtten as =>
) is a common lexical identifier prevalent in the Scala programming language used in functional combinators, function definitions, case-match statements, etc. I normally have to copy-and-paste this operator into my code from someplace else, but that can get really annoying.
Does anyone know of shortcuts to produce this symbol in your IDE of choice? I typically use programs like JetBrains IntelliJ, SublimeText, and VIM.
Steps Keyboard Shortcut Windows Mac Debug Scala Application Shift + F9 Ctrl + D
Redo. The Windows keyboard shortcuts Ctrl Shift Z and Ctrl Y will perform the Redo action.
But when you have multiple functions which are being chained, this constant switching back and forth between editor windows would become a distraction! Instead, place your cursor on the args variable and press Alt + = if you are using Windows or Ctrl + Shift + P if you are on a Mac.
In IntelliJ IDEA under
Preferences -> Editor -> CodeStyle -> Scala
In the Tab 'Other' are options to automatically insert several unicode characters.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With