Alex Luya
Alex Luya

Reputation: 9922

How to set single clicking to open file in IntelliJ IDEA?

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

Upvotes: 108

Views: 38328

Answers (6)

gbengaoyetade
gbengaoyetade

Reputation: 864

With the IntelliJ IDEA 2024.2.2 (Community Edition), you can do the following:

Open Settings (cmd ,) -> Editor -> General -> Editor Tabs and check the "Enable preview tab" checkbox

enter image description here

Upvotes: 1

dobrivoje
dobrivoje

Reputation: 992

  • In the Project View click on the Gear icon
  • Uncheck "Autoscroll to Source" in Project view settings

enter image description here

Upvotes: -1

CrazyCoder
CrazyCoder

Reputation: 402215

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.

Upvotes: 180

Lizhen Hu
Lizhen Hu

Reputation: 944

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

enter image description here

Upvotes: 33

Rostyslav Druzhchenko
Rostyslav Druzhchenko

Reputation: 3773

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

Upvotes: 55

Anton Arhipov
Anton Arhipov

Reputation: 6591

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.

Upvotes: 0

Related Questions