I've recently switched over to intellij for scala development.
I'm having trouble finding the following shortcut:
In eclipse, I could type a method call e.g.
method("hello", 1)
and press <command>1
to have eclipse popup a suggestion to let me create a method stub.
Is there such a shortcut in intellij?
In Eclipse, if the cursor is over a word and you press Ctrl + K you will jump to the next occurrence of that word in the file.
In Eclipse, you press CTRL + SHIFT + O “Organize Imports” to import packages automatically. For IntelliJ IDEA, if you press CTRL + ALT + O “Optimize Imports”, it just removes some unused imports, never imports any package.
ctrl+shift+f searching in some last used directory instead of entire project Follow. Hello, In past IntelliJ versions, ctrl+shift+f would search the entire project (no matter whether you had at some point used "find in path").
Use Alt+Enter (Show Intention Actions in Settings
| Keymap
).
Verified, works fine in IDEA 11.0.1 with the current Scala plug-in:
[T]
symbol in the image) and Then it is possible to use alt + enter (similar to Ctrl+1 in Eclipse) to show menu, which has create method option.
The feature is in beta (or maybe in alpha) and sometimes may report "false errors" in regular code. Usually, such "errors" "found" only in a truly complex code, and, normally, everything works just fine.
Scala plugin doesn't rely on compiler to analyze code. We're implementing our own model of the language, and sometimes it's challenging, especially when it comes to Scala's type system and type inference (to size up the problem, you may try to formally "infer" a type of "foo".map(_ + 1) expression by hand).
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