Eclipse wasted white space on multiple panes - eclipse

Does anyone know how to get rid of the superfluous white space at the top of a split editor pane in the latest version of eclipse (I think it's been around since Indigo actually). To me it looks like the minimise and maximise buttons have been misplaced, see image below.
I know editor planes can be split in a different way, but that is a problem when I switch perspectives, or open new files (they always open in the original editor pane).
I know it is a minor thing, but wasted real estate on my screen annoys me.
Thanks,
Stephen

I've dealt with this on numerous occasions and still occurs on Juno.
If you open two files in the order: ITest.java, Test.java and drag the second/rightmost file (Test.java) to create the split the whitepace will be created (as your picture). The fix is to drag the first/leftmost file (ITest.java) to create the split and then the whitespace is not created.

Related

Change size of whitespace tab arrow character in VS Code

I am currently setting up VS Code on a new computer and want to maintain all the same configuration, addons etc that I had on my previous computer. I was able to copy all of the settings, fonts, themes I like, etc; however for some reason I can't figure out how to change the size of the Tab arrow character for whitespace.
In my old editor, the Tab arrow spanned two spaces, whereas on my new computer, the tab arrow only spans one space.
I've been looking all over, and tried googling any variation of "change tab character size", "modify tab arrow span" etc that I could think of. I seem to remember changing the arrow size at some years ago, which is how I got it in my old editor, but I've totally forgotten, and can't find the setting anywhere, neither searching in the VS Code settings, nor on google like I mentioned; the only things that turn up are for changing tab indent size from 2, to 4 spaces etc.
Here are some screenshots of what I mean, from the new VS Code editor and from the one on my older computer:
Current tab arrow size in VS Code:
Old tab arrows size (what I want in my new editor):
This is driving me crazy, and I'm sure it's a simple setting somewhere that I'm missing. Any help would be appreciated!
Edit: In case it is relevant, I'm using JetBrains Mono as my font, and its the same version of the font as from my old computer as well, I copied it over and installed it on the new PC.
To my shock, the issue resolved itself after rebooting my PC. Once again it would seem that the tried and true "have you tried turning it off and on again" continues to ring true in many cases.
The only explanation I can think of is that perhaps some of the font symbols for whitespace characters weren't fully updated for some reason after installing the JetBrains Mono font, which I had installed earlier the same day, and after rebooting my PC I guess all the characters were fully updated/refreshed, and now the longer arrow is displayed for the tabs; I guess this also means that there is no arrow resizing per se, and the arrow symbol for the tab is simply the font symbol.
In any case, I figured I should write this update as an answer in case something like this happens to anyone else in the future.

Multiple editor windows with multiple tabs

Very often I work with multiple projects in MATLAB and have a group of files for each project that I access at one time. Having all files of all projects open causes a lot of clutter in the workspace. One can do this for one single set of files by docking which is well known.
Is there a way to tab projects, or have multiple MATLAB editors (for each project) open with multiple tabs in each (with the projects files). The question can be found here too. In the same vein, are there other code editors which can be used to perform the same?
Project1
file 1.m
file 2.m
file 3.m
file 4.m
Project2
file 1.m
file 2.m
file 3.m
file 4.m
Either in the same window, or in different windows.
Unfortunately I don't believe MATLAB can do that kind of project/file management for you, which is why I use Sublime Text 2. It's perfect for that kind of project/file management... and not to mention the awesome shortcuts and quick editing tools to help you code faster.
Check them out: http://www.sublimetext.com/. The one drawback is that it's nagware. It is free to use, provided you can bare the popups to buy a copy of the software every now and then. Once you buy it, the popups go away. Give it a try and see how it goes!
If someone still need a solution for that-
You can just drag a tab of one file to the side, or bottom of the space of the editor, like that:
And the result will be:
Now you can drag in the same way other tabs to the new tabs group, and you have two separate tabs groups (but one Editor window..). You can of course drag the middle edge line to the right-end, and work fully only with the first group, or drag it to the left-end and work fully with the second one.
Note for one drawback here- if the line is in one of the ends, you don't see the tabs status and files names of the hidden group, and if you forget that you opened some file there and try to open it again, you will not see it opened, or any change in the IDE, because the control goes to the already opened tab but you not see it.

how to change eclipse's editor to show or edit code in multiple columns?

My laptop and desktop monitors are wider than they are tall. When I'm looking at code, from half to 2/3 of the screen is empty with no code. This is silly.
I'd like to take a look at how to extend eclipse's editor to show data in multiple columns.
If anyone has any idea regarding what api I should lookup or any other resources, please point them out.
Thanks
I don't know if one viewer can display code in multiple columns, but you can split a view for the same file (Window -> New editor).
That way, you can see more of your code, each tab using that horizontal space you have so much on your screen.
For different files, you can put different editor side-to-side:
That will give:
In Eclipse 2018-12 (4.10) there is the "Window/Editor/Toggle split editor vertical" menu option which does exactly what you need. There is also Toggle split editor horizontal option there.

Eclipse shows red lines at mouse pointer

Since I have re-installed my computer, there is a strange phenomena using Eclipse (both JAVA and C/C++).
The moment I press control+shift+s, two red lines appear near my mouse pointer.
Image of the red lines:
http://www.flickr.com/photos/92764732#N03/8431379591/
When I look in the settings-> keys, the control+shift+s is mapped to save all.
However, it does not save all, and only shows the red lines.
Defaulting the keys mapping does not work, I have tried this.
Does anyone has any idea on what these red lines mean, and how to get rid of them?!
Thanks in advance!
Jeroen
Well great, turned out it wasn't Eclipse after all.
Control+Shift+S is a shortcut from Mouse without borders (great tool by the way)!
So, fixed that one, on to saving a lot of files in one press :)

Eclipse PDT Differentiating file name tabs for MVC?

When working with MVC in Eclipse you might often have a model, view, and controller all with the same name open at the same time. When looking at each of the file tabs, you won't always know which is which and have to click through them, which can be quite a hassle sometimes. I've heard of being able to color code files based on the path in some editors. For example, tabs with path model could be set as green, path controller set as yellow, etc. Is this possible in Eclipse, or is there a plugin for something like this? If not, what do you do to more easily differentiate between the tabs? I've heard of people always opening a MVC set in a certain order. So you'll know the leftmost tab is the controller, the right most is the view, etc. However, that must also mean you need to open all 3 files each time. Any better tips or tricks?
Another thing about the file tabs that can be annoying is that when you have more files that can't fit in one line, eclipse pushes off to an arrow which you have to click to see the rest. It seems to be random which tabs get pushed off there, maybe the least used ones, I have no idea... This coupled with the problem above gets kind of annoying. I was trying to find a way to disable this and just show tabs that can't fit in one line to show up on a second line, but surprisingly couldn't find such an option (then again you also can't wordwrap without a plugin).
Hopefully there are some solutions to these two problems. Thanks.
Maybe this can be helpful
http://www.dipherence.com/2011/03/20/full-coloured-eclipse-navigator-plug-in/
With the latest version of Eclipse (Kepler 4.3.1, build M20130911-1000) when two or more files with the same base name are opened, tab will show also the parent directory name.