How to deal with annoyingly large tabs in IntelliJ IDEA? - intellij-idea

Working with some project I'd really like to keep like 8-10 tabs (=files) open at the same time within IntelliJ IDEA as I have to switch between those very often. However the space on the screen is limited especially if the Project Browser and the Remote Host Browser are also open at the same time.
Usually its not that much of a problem but as soon as some remote files are open the labels become very long and therefore the space for tabs decreases even more. Look at the following picture:
A maximum of four tabs at the same time is visible - sometimes only three.
Its not like others have not found very elegant solutions for this - look at the "pinned tabs" feature of google Chrome for instance:
Is there some setting, extension or other possibility how to deal with this problem in IntelliJ? After some research I have only found out that you can switch recent files with Ctrl + E but in my opinion this still is a quite clumsy way to deal with it (especially as it does not work for remote files) 🤕

You can play with Preferences | Editor | General | Editor Tabs settings. For example, if you untick Show tabs in one row, your extra tabs will be placed in several lines. Also you can untick Show file extension and Show directory for non-unique file names options.

Related

IntelliJ Editor Tabs: Last Recently Used

in my new team we're using IntelliJ and there is one Eclipse feature I miss very dearly:
In a usual situation I have like 20-30 files open im my editor, but there is like 2-3 that I jump around most of the time. Eclipse supported this perfectly by always having the last recently used files in my tabs open and only the rarely used ones in the overflow. IntelliJ follows the exactly opposite paradigm: The last recently used files are always in the overflow and the tabs are useless.
Is there any way to make this more comfortable? I currently have them ordered alphabetically so I can at least find them in the overflow. Unchecking that makes it even more terriblester.
Feel free to vote for https://youtrack.jetbrains.com/issue/IDEA-151642 to see this option added to the IDE editor tab settings.
In the meantime, you can use the Recent Files (Ctrl+E) list, as well as the Recent Locations switcher (Ctrl+Shift+E).
More information on navigating between recent locations and changes:
https://www.jetbrains.com/help/rider/Navigation_and_Search__Navigating_to_Recent_Locations.html
https://blog.jetbrains.com/phpstorm/2013/02/navigating-between-files-in-the-ide-best-practices

WebStorm - How to focus on the most recent opened tab when closing file

I'm not sure if this is a bug or this is normal behaviour.
I'm using WebStorm on Mac (I think I remember having the same behaviour on Windows but I'm not sure).
I have always many files open. When I close a file, WebStorm is not doing what I want:
Expected behaviour:
The focus is on the most recently used tab, i.e. on the last file I had focus on before focusing on the file that I closed.
Actual behaviour:
The focus goes on the file where its name is the closest alphabetically. I'm not entirely sure that is the behaviour but it is definitely not on the Most recent used file.
Example with file names:
I have 5 tabs open, the most recent used tab list look like
So when I will close navbar.controller.js, I expect changeLanguage.controller.js to have the focus.
But instead when I closed it, the focus went on jwt.js
This is super confusing as in real work environment, I am used to have ~20tabs open and this confuses me a lot.
After looking a lot, it seems that the answer was already provided on this wonderful website: Change to most recently used tab when closing a tab in IntelliJ IDEA?

Intellij 2016.2.5 Darcula 16: perceptible highlight of currently active tab

I find it extremely difficult to spot the currently selected tab in Intellij, if using the Darcula theme. I've looked for a workaround and I was not able to find any solution besides disabling the "Use in Editor Tabs" checkbox in Settings->Appearance&Behavior->FileColors.
This issue has been reported by several other users (e.g. this question), but I can't seem to solve it for the current version of Intellij/Darcula.
Thanks
One possible fix is to use the single tab model, where you set the maximum open tabs to 1. You can use open-recent, open class, and the project explorer to navigate around your codebase. I switched to this model after seeing a colleague working this way last year and I'm enjoying it. It took me a few days to get used to it, but having the tool enforce the single tab approach helps because you are basically forced to work this way.
You can try Material Theme plugin for intellij. It has a dark theme like Darcula and it would underline and highlight your current tab.
And if you think long term perspective, actually Engineer Dollery is correct. When you get more and more experience with intellij, you also feel that working with multiple tabs is really a time waste. Single tab mode is much efficient.
Because intellij provides plenty of navigation tools like Ctrl + Shift + N , Ctrl + tab , Ctrl + E , Ctrl + Shift + E , you really don't need tabs. These shortcut keys make sure your finger tips remain on keyboard and save the time you have to deal with switching to touch pad/mouse and again to keyboard when you try to switch the tabs in multiple tabs mode. If you count this time saving for a week/month, actually its a huge amount. :))

IntelliJ IDEA 13.1.2 javadoc and tabs

I hate to ask such simple questions, but nothing I found so far helped me...
So, I've recently started using IntelliJ instead of Eclipse and there are 2 things that really bothers me...
1.) size of javadoc popup window - ok, so I finally get this little guy to pop-up whenever I need it, but it's so small I have to use scroll every single time... and that's pretty anoying when I'm working with unknown libraries...
2.) tabs == spaces - maybe some of you like this, but I don't... Eclipse was treating tabs as tabs and not spaces... I tried to change settings but with no result... or is that maybe connected with project I'm working on? (meaning, if, at the start of a project, setting were such that tabs == spaces and now changes are not applied to it)
Sorry for stupid question but, as I said, nothing I found so far helped me...
1) Just resize the window with your mouse. It will retain the size the next time it opens. You can also click on the gear icon in the upper right corner and adjust the font size. Again, it will retain the size on subsequent use.
2) I'm assuming you make the change to the "Use Tab Character" option on the "Tabs and Indents" tab for all file types and saved the Code Style. After that, you need to run the Reformat Code action (Ctrl+Alt+L or Code > Reformat Code from the menu or Reformat Code from the context menu (i.e. right-click) in The Project Tool window or Navigation Bar). IDEA retains the previous formatting (so spaces in this case) until you run a reformat on the project (or a part of it).
If you have multiple projects already created, for each one, you will need to go into File > Settings > [Project Settings] > Code Style and set the Scheme (and then do a reformat). While the Scheme definition is saved IDE wide, the scheme to use is set per project (which makes sense since an Apache Open Source project you are working on may have different code style requirements than the projects you do at work vs the ones you do for fun).
Finally, you will also want to go into File > Other Settings > Default Settings > [Template Project Settings] > Code Style and make sure your saved code style scheme (with the use tab option) is set so that new projects use that scheme when they are created.

How to open files in Intellij-IDEA with double click?

My first day using this IDE...
is there a way to configure the IDE to open files in the project by double click? It is rather painful having to drag files from the project overview into the editor window.
You can change the KeyMap.
Go to File->Settings and find the keymap section.
You will have to create a new KeyMap by clicking copy, and then look in the View section for "Jump to Source" and change/add the keymap you want.
However, as Bozhidar Batsov noted, double clicking may not always work so well. Whether it works may vary by OS and/or windowing system. I have no trouble with it in Mac OS X, but it doesn't seem to work well in openSUSE.
There are also other predefined keymaps that you can select from this settings screen. They're set up to resemble other IDEs, so you might find them helpful if you're transitioning from something else.
It is easy way to do in windows.
I found a great solution to this problem by Jelmer Kuperus over at Orange11.
Create an .Xresources file in your home directory. Add the following line:
*multiClickTime: 400
Jelmer explains that this setting changes the default double-click speed from 200ms to 400ms, effectively slowing it down. Save the file and then run:
xrdb ~/.Xresources
The effect is immediate, no need to logout or reboot. Double-click in Intellij works as expected. I did try changing the mouse double-click speed in System Settings first before trying this out to see if that made a difference but it did not.
I am using Ubuntu 11.04, Intellij 10.5.2, and Sun JDK 1.6.0_26. YMMV
Use F4 to open quickly the selected files. Btw double clicking on files should work as well(at least in theory). Swing's buggy handling of such events, however, causes the double click to not always work in IDEA, so I eventually stopped double clicking and switched to using F4. You can also use "Autoscroll to source" from the projects menu - this will open the source files as soon as you select them in the project browser.