Java to Scala

Hi there,

how is the automatically-convert-java-to-scala Dialog triggered? Because I see it rarely when copying + pasting code from a .java file to .scala file. I'm converting a lot of files at the moment, so that functionality comes very handy, but often IDEA doesn't respond it just pastes the java code as-is into my .scala files. Any way to explicitly invoke the conversion?



Comment actions Permalink

Ha! Shift+Cmd+V shows the paste-selection dialog ("Paste from history" -- shortcut not shown in the menu, I just intuitively hit it). After I choose things there, it starts again asking me that question :)

Comment actions Permalink

You can always tweak conversion settings in Project Settings / Scala / Other settings.

Additionally, you may convert Java files completely via Refactor / Convert Java file to Scala (Ctrl + Shift + G).


Please sign in to leave a comment.