6

Is there a hotkey for searching for references in IntelliJ when using Scala?

In Eclipse, when using the hotkey CTRL+SHIFT+G on a name, a search for references starts. This is very usefull to find where a certain method is used. Is there anything similiar in IntelliJ when using Scala ?

John Threepwood
  • 15,593
  • 27
  • 93
  • 149

2 Answers2

10
  • Ctrl+Alt+F7: Show Usages; displays pop-up with usages.
  • Alt+F7: Find Usages; opens the Find view, displaying usages in various ways (such as by methods and by files).

Found by doing Ctrl+Shift+A, then typing find, and seeing Show Usages and Find Usages listed. I tried search first, but that only showed settings. Now, I knew IDEA called it Usages, not References, but I avoided searching for that because you wouldn't know to search for that.

Daniel C. Sobral
  • 295,120
  • 86
  • 501
  • 681
  • Looks like you can also right click on a class and select find "usages" see here: http://stackoverflow.com/questions/17622519/finding-all-references-to-an-object-in-idea – atom88 Nov 18 '16 at 22:59
2

I think in version 12 in Ubuntu Linux it's Control + Alt + the number key 7 rather than F7.

Jason D
  • 8,023
  • 10
  • 33
  • 39