intellij-ideaintellij-pluginintellij-idea-2016

How to open temporary/preview tab in intellij Idea


I like VS Code and sublime editor and in particular their default behaviour of preview the file. When you single click on a file from file explorer pan, it would open it in a temporary tab, unless a change is made in the file or opened with a double click on file, which opens it on persist tab.

Recently I've to use IntelliJ IDEA in a project and so far I like it this particular functionality is holding me up to adopt it completely. How to achieve this temporary/preview tab behaviour in IntelliJ IDEA?


Solution

  • You can find some workarounds in the open request, or just follow it for updates:

    Update

    This is now a feature in version 2020.3+

    'Enable preview tab' checkbox in Settings -> Editor -> General -> Editor Tabs section