Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to select multiple separated files in Project view in IntelliJ IDEA without mouse?

Suppose I have two files in my project and I want to move them using F6 to another package. In my case I want to move two qualifiers (EightDigits and ThirteenDigits) to qualifiers package. If they were next to one another I could use Shift + arrows to select multiple files. Nonetheless there are Main and NumberGenerator classes between. Any idea how to select them without mouse as presented on the screen below?

enter image description here

like image 353
Artur Owczarek Avatar asked Nov 15 '14 14:11

Artur Owczarek


2 Answers

This problem can be fixed by turning off "Open files with single click" in the Project tab > Gear icon.

It might be a bug; not sure.

like image 197
Jon Onstott Avatar answered Nov 13 '22 20:11

Jon Onstott


  1. Move to the first file (EightDigits) using the arrow keys
  2. Hold down the CTRL key and use the arrow down key until you reach the second file (ThirteenDigits).
  3. Release the CTRL key. At this point, the first file should be highlighted in a filled blue rectangle (same as when you click it with a mouse) and the second file should be highlighted with an empty blue rectangle (you never see that kind of highlighting when you use a mouse).
  4. Press the SPACE key. Now both files are highlighted in a filled blue rectangle. It means they are both selected.
like image 5
luc-plamondon Avatar answered Nov 13 '22 21:11

luc-plamondon