How to set single clicking to open file in IntelliJ IDEA?
Asked Answered
N

5

103

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

Nonesuch answered 31/7, 2012 at 8:48 Comment(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 dateHandle
B
174

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.

Butterwort answered 31/7, 2012 at 9:23 Comment(7)
Great! Someone knows of a way to make the file close again when clicking on another file?Wast
@SimonBengtsson Coming from Sublime, this is the feature I crave the most.Ciaphus
@Ciaphus you stole my words... I really thought that was addableEdra
@SimonBengtsson Get rid of tabs altogether! You won't regret it! I tried it and I'll never go back. You can easily switch "tabs" using Ctrl/Cmd + E. Couple it with Zen mode and it feels super awesome ;)Poona
@SimonBengtsson Enable preview tab may do the trick. https://mcmap.net/q/209535/-how-to-set-single-clicking-to-open-file-in-intellij-ideaBunting
same place, the "gear" icon. but called differently. see the answer by @RostyslavDuplication
This plugin does it like VSCode if anyone is interested. plugins.jetbrains.com/plugin/12778-quick-file-previewFondafondant
S
52

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

Stereo answered 22/3, 2020 at 13:7 Comment(2)
how to set this feature enabled by default for all projects ? if i open new project i have to set this every timeHaroldharolda
@Anton, I don't know. Agree with you it's really annoying. If you find the solution, please post it here.Stereo
B
29

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

enter image description here

Bunting answered 18/7, 2021 at 6:38 Comment(1)
I am wandering why intellij team, has give both the option for same work!!Zohar
B
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.

Backsheesh answered 31/7, 2012 at 9:20 Comment(0)
D
-1
  • In the Project View click on the Gear icon
  • Uncheck "Autoscroll to Source" in Project view settings

enter image description here

Disencumber answered 27/3, 2023 at 9:6 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.