Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the keyboard shortcut for ⇒ in your Scala editor of choice?

Tags:

scala

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.

like image 289
nmurthy Avatar asked Sep 17 '15 04:09

nmurthy


People also ask

How to debug Scala application on keyboard?

Steps Keyboard Shortcut Windows Mac Debug Scala Application Shift + F9 Ctrl + D

What is the keyboard shortcut to redo a file?

Redo. The Windows keyboard shortcuts Ctrl Shift Z and Ctrl Y will perform the Redo action.

How do I switch back and forth between Editor Windows?

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.


1 Answers

In IntelliJ IDEA under

Preferences -> Editor -> CodeStyle -> Scala

In the Tab 'Other' are options to automatically insert several unicode characters.

enter image description here

like image 94
Sascha Kolberg Avatar answered Sep 18 '22 16:09

Sascha Kolberg