I run Eclipse-2021-06 with DevStyle in Dark Mode and when editing files I get this annoying vertical line (see screenshot, surrounded by red rectangle). I assume it is a page separator, i.e. if I printed that java file, that's where a new page to the right would begin. Is there a way to hide this line?
Vertical line in eclipse editor
The line you are seeing is the print margin, which is enabled by default in Eclipse 2021-06.
You can disable it from here: Window > Preferences > General > Editors > Text Editors > uncheck ‘Show print margin’ and apply the changes. You can also tweak the color of the line from the ‘Appearance color options’ section in the above page.
Related
trying to deal with a minor issue here: I want to make my eclipse as distraction free as possible. So far I'm satisfied, except for one thing that I've not been able to figure out how to change:
the white vertical bars are ... annoying. How can I change their color?
Please note that the left ruler is not the code folding bar (which is on the right side of the line numbers), but the so called "vertical ruler" which shows line annotations (eg errors and stuff), to be found in Preferences > General > Editors > Text Editors > Annotations. This bar can not be deactivated (which I don"t want because i find it useful), I just want its color changed. Don't know what the right ruler is though.
not a duplicate of Vertical white line on eclipse or Is it possible to make Eclipse's code-folding gutter black?
edit: but indeed a (partial) duplicate of Change overview ruler color in Eclipse. Problem not solved: changing the system theme (mine is mediterranean dark) did not change the color of the bar.
Thank you
Found it myself, sharing it for others who want to customize their bar color:
#org-eclipse-e4-ui-compatibility-editor * { background-color: #002b36; }
change the hex value to anything you like. This css snippet has to be added to eclipse in some way (I did it with eclipse Chrome Theme http://marketplace.eclipse.org/content/eclipse-4-chrome-theme#.UYrzEkAW1J0)
FYI: I found the css id with the "css spy" from the eclipse tooling collection (http://marketplace.eclipse.org/content/eclipse-4-tools-css-spy#.UYrzSkAW1J0)
result:
Btw, It looks like you can actually just disable this bar by going to Preferences > General > Editors > Text Editors. Then just uncheck the box labeled "Show range indicator".
Thanks for sharing your solution. I could apply the code by just adding to CSS files in eclipse\plugins\org.eclipse.platform_4.3.1.v20130911-1000\css.
I use Windows 7 theme so added to e4_default_win7.css. And I slightly modified the rule to have less side effect (occurrence markers were hard to see with the colors set by color theme).
#org-eclipse-e4-ui-compatibility-editor Composite > Canvas {
background-color: #232323;
}
I had a similar problem, but for me with Neon .2 on windows it was the unfold bar that stayed white. After I disabled unfold and enabled it, the bar stayed black(for now). But you could also just keep it disabled. It is shown in the link below.
link to the PrntScrn to disable unfold bar
Eclipse:
just as you can see, now the current line in Eclipse is dark green, but i want to change the current line to just a underline, just as what i make in vim, the underline is the current line:
vim
can eclipse make it? i have searched all i can, including preferences in eclipse and google, but still cannot find a solution.
:hi cursorline cterm=underline ctermbg=None
I can't seem to find that option anywhere in the default options of the eclipse.
The only area I see to deal with the 'current line' theme is
Windows > Preferences > General > Editors > Text Editors
In this screen you should see the Appearance colors options which is where you can select the Current line highlight.
Another spot I checked is the Annotations section:
Windows > Preferences > General > Editors > Text Editors > Annotations
But I did not see any kind of current line option. You might have to try a 3rd party plugin for this.
The Eclipse java editor displays small colored rectangle icons just to the right of the scrollbar to indicate lines with //TODOs, deprecated statements, etc. One of the most useful shows the other occurrences of a currently selected variable, but the color of this one is practically the same as the background.
What are these icons called and how can I customize the colors?
Like a lot of things in Eclipse, it's easy, once you know what something is called ;-)
In the Preferences tree, that right strip is the "Overview Ruler". Here's some of my notes:
Display of Task and Bookmarks
Preferences / General / Editors / Text Editors / Annotations
Show in:
Vertical Ruler = left edge icons, in sight of current scroll position
Overview Ruler = right edge colored blocks, relative to overall file
Text as = markup the actual text
I need to view the tabs and spaces and CRLF in python source code in eclipse the same way we could see them in notepad++, Now I have to edit in notepad++ and run in eclipse. Not a neat way but eclipse does regular update of the changes of same file in other editor.
This should be cover with the "Show invisible" option
From Eclipse3.3:
It is now possible to see the invisible whitespace characters in textual editors:
This feature can either be controlled via "General > Editors > Text Editors > Show whitespace characters" preference, or via the tool bar button when the Editor Presentation action set is enabled.
I did not tried it with PyDev, but its editor should be a "textual editor", and the option should work.
when I press TAB it creates spaces instead of >> for tabs
Check the option "General > Editors > Text Editors > Insert spaces for tabs":
if unchecked, it will display tabs, not space.
How to change overview rule background color in Eclipse 3.4.0.I20080617-2000 (vertical bar on right of editing window with some annotations) ?
General > Editors > Text Editors > Annotations allows only to change colors of marks itself not background of whole bar.
It looks like my web searching skills are getting weaker since I cannot find it anywhere ...
I also faced the problem of not being able to see the colors in the annotations ruler, so I've made a small plugin which enables setting the background color for the ruler. You can D/L it
from here: https://github.com/chookapp/AnnotationsRulerBackground
(screenshots at: https://github.com/chookapp/AnnotationsRulerBackground)
I have the same problem as Michal - this seems to be non-customisable.
I have trouble seeing some of the annotation marks in the overview ruler due to Vista's lighter colouring. You can change the colour of the marks, but the bar itself doesn't change colour.
It looks like the only way to change it is to change the system colours for all windows.
you can only change the color for the occurrence marking inside the editor (General > Editors > Text Editors > Annotations). The color in the overview ruler is computed from that color.
Add the following lines at the end of e4_classic_win7.css
#org-eclipse-e4-ui-compatibility-editor Composite > Canvas {
background-color : #232323;
}
The file is located in
Eclipse Kepler : \plugins\org.eclipse.platform_4.3.2.v20140221-1700\css\
Eclipse Mars : \plugins\org.eclipse.ui.themes_1.1.1.v20151026-1355\css\
Be sure to select windows clasic theme in Preferences->General->Appearance
And restart eclipse.
Alternatively you can edit the other corresponding css files.
Note: You have to choose you own preferred RBG color instead of #232323
My solution has been to make the text light on a dark background across all text editors. (Window -> Preferences -> General -> Editors -> Text Editors -> Background color => BLACK, and then every 'Syntax Coloring' you need)
This way the annotation colours I choose can be quite highly saturated dark colours - the text is then still legible over the annotation highlight in the text editor, but the marker in the overview ruler is also highly visible (assuming a light window colour in your OS).
The downside of this is that you have to do a lot of customising to get there. (Its worth exporting your preferences for other workspaces if you plan to go down this route.) And its more of a workaround than an answer :-(
It seams to work for me.
The only thing to do is to "restart" Eclipse after your change.
The overview ruler and the editor will display the selected color
What if you are using eclipse 4, try this.
https://github.com/jeeeyul/eclipse-themes
You can actually just disable this bar by going to Preferences > General > Editors > Text Editors. Then just uncheck the box labeled "Show range indicator". The annotations will still appear, the bar will take the color of your theme. Solution found there.
i added below and works well in eclipse luna & neon. It works
#org-eclipse-e4-ui-compatibility-editor Canvas,
#org-eclipse-e4-ui-compatibility-editor Canvas > * > * {
background-color: #b5c7ce;
}
background-color: #e0d2d2;
}