PLEASE NOTE: This project is no longer maintained due to an added built-in functionality in IntelliJ to preview files, which works quite similar to this plugin.
Compatible with IDEA PhpStorm WebStorm PyCharm RubyMine AppCode CLion Gogland DataGrip Rider MPS Android Studio
This plugin enables a quick file preview on simple selecting files in Project View - similar to the preview in Sublime or VSCode.
Features:
Please note: If Autoscroll to source/Open files with single click is enabled, the actual editor tab is opened instead of a preview. To make proper use of the preview tab, this option must be disabled!
(inspired by https://youtrack.jetbrains.com/issue/IDEA-130918)
Defines when the Preview Editor tab should be shown in general.
Whenever the focused file in the Project View changes, a preview is shown or the already existing editor is focused.
Whenever the focused file in the Project View changes, the already existing editor is focused. The Preview Editor tab is only shown when pressing \
Defines the required number of clicks to expand/collapse a node in Project View tree: one click if option is enabled (plugin default), two clicks if option is disabled (IDE default).
If enabled, the expand/collapse states of the folders are kept when a parent folder gets collapsed/expanded.
Switching the focus in the Project View to an directory or non-displayable element, the preview is closed. Disable to keep the last Preview Editor tab.
Please note: Due to unwanted side effects, this setting has no effect if Always Select Opened File is enabled.
Defines how the file name is formatted in the preview tab title, while %s represents the filename. Leaving the field blank will show the title like for usual editor tabs. Tab coloring can be used to distinguish.
Sets a custom background color for the preview tab.
Switching editor tabs does not close the current Preview Editor tab on default.
If activated, the tab becomes a normal editor tab when a change happened during preview, so it will stay open if another file gets selected.
Please note: A default editor tab can always be enforced by \
Install it from the Jetbrains plugin repository within your IDE (recommended):
You can also download the JAR package from the Jetbrains plugin repository or from GitHub Releases and add it manually to your plugins:
Clone this repository (https://github.com/SeeSharpSoft/intellij-file-preview.git).
Build the plugin:
gradle build
Start IDE:
gradle runIdea