Ctrl + Shift + {Up or Down Arrow} = moves lines/methods up and down in the source code.

Not entirely sure this will be possible, but the move works when attempting to move a function above others.

But say, for using a DSL such as scala test the move of a function breaks down. ie

class SomeTest extends FunSuite {

     def someHelper {
          // do something         

     test("a test") {
          // do a test

ie if i have the cursor on the name of the function someHelper and hit ctrl shift down arrow it starts break up the function.
Ideally ( for me ) it would be the function below the test.


1 comment
Comment actions Permalink

It makes sense, now it works as expected.


Please sign in to leave a comment.