92

And what are counterparts to eclipse's declaration view and javadoc view?

Atul Takekar
  • 51
  • 13
Alex Luya
  • 9,412
  • 15
  • 59
  • 91
  • 1
    I suggest changing the accepted answer to Rostyslav's answer since it works with the current version of Android Studio while the original accepted answer is now years out of date – Paul Slocum Sep 22 '21 at 12:30

5 Answers5

151

In the Project View click on the "gear" icon and enable the Open Files with Single Click option:

Open Files with Single Click

Use Ctrl+Q for Quick JavaDoc and Ctrl+Shift+I for the declaration pop-up.

CrazyCoder
  • 389,263
  • 172
  • 990
  • 904
50

Now it's available in a simpler way. In the Project View click on the Gear icon and then click Open Files with Single Click:

enter image description here

Rostyslav Druzhchenko
  • 3,673
  • 3
  • 33
  • 38
24

Go to Preferences and turn on Enable preview tab, that will enable Open Files with Single Click for all projects.

enter image description here

Lizhen Hu
  • 814
  • 10
  • 16
0

Javadoc opens with Ctrl+Q

There's no declaration view per se, however, you probably will be satisfied with Ctrl+Shift+I shortcut for quick lookup.

Don't know of any ways to configure it to open files on single clicks. Somehow, if you get used to the shortcuts, you skip using mouse very much. For instance, Alt+Home will bring the navigation bar up and you can move with arrows and open the file with Enter. Or just use some other shortcuts like Ctrl+N or Ctrl+E depending on the context.

Hulk1991
  • 3,079
  • 13
  • 31
  • 46
Anton Arhipov
  • 6,479
  • 1
  • 35
  • 43
0
  • In the Project View click on the Gear icon
  • Uncheck "Autoscroll to Source" in Project view settings

enter image description here

dobrivoje
  • 848
  • 1
  • 9
  • 18