How to make Scroll From Source feature always enabled?

Intellij Idea

Intellij Idea Problem Overview


How to enable "Scroll from source" in IntelliJ IDEA so it is always on, meaning if you open any file it is automatically shown in Project view, likewise it is made in Eclipse?

There is a possibility to click the button in Project to find chosen file, but it is annoying to click it each time you open another file.

Intellij Idea Solutions


Solution 1 - Intellij Idea

You can check Autoscroll from source in setting for project pane (in the lastest version is probably different icon)

enter image description here

Solution 2 - Intellij Idea

Unfortunately this setting must be ticked every time you open or create a new project.

If you would like this setting to persist between projects, you can use this plugin:

AutoScroll Save IntelliJ Plugin

Disclaimer: I am the plugin author.

Solution 3 - Intellij Idea

From version 2019.3.1, the name of the options have been changed as below:

Autoscroll to Source -> Open Files with Single Click

Autoscroll from Source -> Always Select Opened File

The credit will go to this post. Hope it helps.

Solution 4 - Intellij Idea

I'm using 2019.3 and I could not find the gear icon, or Autoscroll or Open Files in the Settings.

Here's what I did instead, after 30 minutes of searching.

  1. Right click on the Project
  2. Enable "Open Files with Single Click"

enter image description here

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionEugeneView Question on Stackoverflow
Solution 1 - Intellij IdeachalimartinesView Answer on Stackoverflow
Solution 2 - Intellij IdeavikingsteveView Answer on Stackoverflow
Solution 3 - Intellij IdeaEric TanView Answer on Stackoverflow
Solution 4 - Intellij IdeaNo OneView Answer on Stackoverflow