How do I stop tabs from re-ordering inside IntelliJ IDEA?

前端 未结 2 1474
感情败类
感情败类 2021-02-01 02:36

Every time I click on a certain tab inside IntelliJ IDEA it reorders all the tabs. I find this to be super-annoying as I learn the order of my tabs, and then it switches.

相关标签:
2条回答
  • 2021-02-01 02:47

    This behavior is defined by the Java Look&Feel, you can either change Look&Feel to the one that doesn't reorder tab rows or enable the option to Show tabs in single row (or set the tabs to be displayed on the right/left instead of the top).

    See also the related bug report.

    0 讨论(0)
  • 2021-02-01 03:07

    This is really annoying and sad, because this issue is from 2009 and it's still unsolved. I tested multiple configurations and find a suitable solution.

    For my workaround and a more intuitive behaviour go to Settings -> Editor Tabs

    • Placement: Right or Left (show tabs in single row should be checked & frozen)
    • check Show directory in editor tabs for non-unique filenames
    • change Tab limit to 20 or your desired value
    • check Close less frequently used files
    • check Activate most recently opend tab

    Apply and close the window. Then go to the menu bar: Window -> Editor Tabs and uncheck Alphabetical Mode if checked. This change let you reorder your tabs by drag&drop and new tabs are appended after the active tab. This also annoying, because most editors append it to the end of a list.
    Maybe you prefer the Alphabetical Mode but the sorting is not consistent, because only one directory (the closest one) of a file is evaluating for the sorting. The parent folder and parents parent, ... are ignored.

    There is still an annoying behaviour, which is more annoying when you place the tab bar on top/bottom. When using right/left you have still the same problems, but you get more space and it don't start to annoy you so fast with a vertical list ;)

    • when using single row you are limited to scroll horizontal/vertical, you cannot scroll out of the active tab, you have to change the active tab to scroll further.
    • when using single row at the end of the tab is a icon which shows the disappeared tabs with a crazy order and it change the order when you activate another tab.

    With top/bottom placement you get another annoying behaviour:

    • when you place the bar Top/Bottom and not using single row the order changes in most cases when you switching between tabs, this the most annoying behaviour for me.

    tested on IntelliJ Cardea

    0 讨论(0)
提交回复
热议问题