Why Intellij Idea doesn't show the current file? - intellij-idea

My current file is ServletConfig, but it can't show on the top of the tabs when there are many tabs.

By default, the IDE adds new tabs to the right of active tabs. If the space exceeds the screen width, new tabs collapses behind the "show all"-button. This is the behavior you're expecting. New Tabs just collapses behind the "show all".
You have two options, disable the collapse-mechanism (eventually resulting in tiny tab headers that are not useful as well) or close least used tabs automatically. There is no "always show last opened Tab".
Check the Editor-Tab Documentation to check if a setting fits your need.

Related

IntelliJ/WebStorm: Split editor so that splits stay together

I would like to split a tab (either horizontally or vertically) so that there is still only one tab for that file so that when I switch to other tab or file, those panes will go away but when I come back to the file, panes show up (similar to how Eclipse works).
Currently when I split tab, those two tabs are completely detached so that when I go to other file in one group, split tab still stays put in other group.

Pycharm - How do I set the page margin? [duplicate]

The other day I mis-clicked on and mis-dragged something probably and then the left "side bar" of the editor window got wider than normal.
Since this happened by mis-clicking and dragging, I don't know how to reset it back to the normal width. It simply doesn't respond when I try to click and drag the borderline. Didn't find anything related in Settings either.
It's not possible to change the gutter width at the moment. It adjusts itself automatically when needed (e.g. there is a gutter icon for override method and a breakpoint on the same line).
Looking at your screenshot, the width is actually standard. It needs some extra space to allow you setting breakpoints without accidentally clicking the line number.
You could submit a feature request/usability problem to https://youtrack.jetbrains.com/issues/IDEA, but to me, it seems fine.
But since you say it was different the other day and then something happened and it became wider, you could try starting PyCharm with default settings by renaming/removing configuration folder. Here is the article on how to find it.
Go to Settings -> Editor -> General -> Gutter Icon and uncheck the Show gutter icons.
But you should be careful: this action will hide information about recursive calls, override methods etc...

Intellij IDEA - new tabs not opening at the end despite setting

On 2019.3.
Open new tab at end is checked, yet when I double click on a file that is not open, it is opening on the first position and thus rearranging my tabs.
Why?
I have tried with both tabs in one row and multiple rows. same result.
I think this has to do with the setting activate most recent on close. they are connected despite no reason for it.
It appears to be a known issue:
IDEA-220087 "Open new tabs at the end" preference has no effect whatsoever

How do I keep IntelliJ from closing my Editor Tabs automatically?

When opening more than 10 Editor Tabs, IntelliJ automatically closes my least used Tab each time I open a new Tab.
How can I increase this limit?
More recent IntelliJ settings are accessed differently than older versions.
Change the Tab Limit under the Tab Closing Policy settings.
Open your IntelliJ settings: Select File -> Settings -> Editor -> General -> Editor Tabs.
Look for Tab Closing Policy -> Tab Limit and change the value to a higher integer.
You can also select to either close non-modified files first or less frequently used files first once your tab limit has been reached.
For recent versions on Mac, Configure Editor tabs is under
In the Editor --> General --> Editor Tabs, Under Closing Policy, change the Tab limit as per your requirement
If you need more than 100 tabs:
By default, the maximum number of open tabs that you can allow is
limited to 100. If you want to increase that limit, press Ctrl+Shift+A
or choose Help | Find Action from the main menu. In the popup that
opens, start typing Registry, select the corresponding item and press
Enter. In the Registry dialog, search for the ide.max.editor.tabs key
and change its value.
Adding an answer to help anyone else with a similar problem. OSX+Catalina on JetBrains/PyCharm was having closing all tabs when I lost focus on the application. When I came back the "Synchronization" action happened (top right circle arrow spins) and all windows are reset (many closed as a result). My fix was to disable in the settings. Appearance & Behavior > System Settings > Disable everything under the "Synchronization" section. You may need to seek out other "sync" options in settings.

Show a most recently used tab after dragging a tab in IntelliJ IDEA

In IntelliJ IDEA, I want to show a most recently used tab after dragging a tab like eclipse. For example,
a.java
b.java
c.java(Current)
...
d.java(Previous) -- hidden by dropdown
In case 'c.java' was dragged, the editor shows 'a.java' instead of 'd.java'.
I want it to behave same as 'Activate most recently opened' setting for closing tabs. But it doesn't work for dragging in case the previous tab is hidden by a dropdown menu. Is there any setting for it?
No, there is no setting for it.