I just migrated from Eclipse 2019-06 to Eclipse 2021-03, and there's a difference that's driving me crazy, and I don't know how to have the same behavior as before.
When I lose focus in the Project Explorer view, I'm unable to view the highlighted file as before.
NOTE: What I'm looking for is not the way to show the current file (present in the editor) linked against the Project Explorer. It's just the way to keep the file that I selected in Project Explorer highlighted when it looses focus.
The theme you are using is responsible for this behavior:
In the Light theme + Default color scheme, when the focus in on the Package Explorer:
When it is on the editor:
As setting the theme to Dark litterally froze my Eclipse, I can only give you those insight on what to do:
Check in the General > Color. You could for example change the background color to some visible one (yellow, green, ...) until you see a change in the unfocused Package Explorer. Once done, you can restore default colors and only set it on the part that needs change.
If you use some plugin that provide more themes, check with those themes.
Use Light theme !
Related
How to enable quick fix while hover over error in eclipse?
Currently it looks like this, so I can't import by using this popup
So, I want it to be like this:
I already restarted few times my eclipse, also I followed instructions how to check: Windows > Preferences > Java > Editor > Content Assist > Advanced
But nothing helped...
So, the point is how to enable quick fix just by hovering over the error, I don-t want't to use Ctrl+1 or Edit > Quick Fix every time.
I am a beginner so I don't know whether it might help or not
I had the similar problem
I wanted to see the quick fix available when the cursor is on the error(red line)
(underlined blue words so that I can click and quickly fix or change what is necessary)
The problem was the something I installed from eclipse marketplace("dark theme devStyle")
I didn't know how to change the background color and I thought I needed that dark theme devStyle to change color. So I simply unintalled it and the problem solved. Also I deleted the metadata folder in the workspace to make a default setting.
I had a similar issue after installing Dark theme devstyle from eclipse market place.
The solution for me was to power off my PC and turn it back on again and It worked.
My default workspace on Eclipse set the Javadoc Background color to black and it is impossible to read the text:
Javadoc black background
I have already tried to "restore defaults" at Window -> Preferences -> General -> Appearance -> Colors and Fonts, but it works until I close the workspace. Next time I open it again, the problem returns:
Preferences Javadoc Background overrides default
I have tried to find the file inside workspace\.metadata\.plugins folder that set this configuration, but I didn't find. I also tried to find other solutions, but I only found solutions for Ubuntu OS, and I am on Windows 7 with an Oxygen.3A Eclipse.
Has anyone faced this problem?
Thanks in advance.
PS1.: New workspaces comes without the error.
PS2.: I work with lots of workspaces at work, so creating new ones is not an option, because it will take hours to reorganize them.
I solved this problem on Eclipse 2018-12 by changing to a theme other than "Classic." Once I did that and restarted Eclipse, it looked like it should.
Preferences->General->Appearance.
Make sure Enable theming is checked.
Select a different theme from Classic and restart Eclipse.
Since you lose your current workspace setting for background color whenever you reopen the workspace perhaps Oomph has stored a configuration setting for background color for that workspace (black in your case), and that is being used on startup to override your most recent setting.
To resolve:
Select Window > Preferences > Oomph > Setup Tasks > Preference Recorder
Check Record into and select Workspace from the droplist.
Enter Javadoc.backgroundColor in the search field and then check the entry that is listed, so that your screen looks like this:
Click Apply and Close.
Select Window > Preferences > General > Appearance > Color and Fonts, select Java > Javadoc background and then click Edit... to choose the background color you want.
Click Apply and Close then restart Eclipse. After restarting you should see that your most recent color change is still being used.
Optionally, uncheck Record into so that Oomph doesn't record further configuration changes.
(I am not confident that this is necessarily the solution because it implies that someone had previously set the Javadoc background color to black as part of the Oomph configuration for the workspace, and that is not easy to do unintentionally.)
I am running Eclipse Mars on Ubuntu 15.04. I have seen instructions to change GTK3 tooltip fg/bg color at system-wide level. My question is how can I change the GTK3 tooltip fg/bg color only for Eclipse without affecting other applications.
(GTK3 and CSS are not my fields of expertise so I really need some help here)
I found a way to fix Eclipse tooltip color without falling back to GTK2 and without affecting any other application.
The fix is captured in a script and it can be accessed here.
https://github.com/KiranMohan/eclipse-gtk3-ubuntu
The script makes a copy of the Ambiance theme, modifies the tooltip color and then writes a launcher for eclipse with this new Theme.
How to apply GTK changes only to eclipse:
Somewhere on your home directory, create a gtkrc file (like: ~/.gtkrc-eclipse) with following content:
gtk-color-scheme = "selected_bg_color:#0AFC02\nselected_fg_color:#FFFFFF\norginal_selected_bg_color:#f07746\ntooltip_bg_color:#f5f5c5\ntooltip_fg_color:#000000"
Launch eclipse from command line like,
env GTK2_RC_FILES=/usr/share/themes/<Your current theme>/gtk-2.0/gtkrc:/home/<user name>/.gtkrc-eclipse '
env GTK2_RC_FILES=/usr/share/themes/Ambiance/gtk-2.0/gtkrc:/home/chandrayya/.gtkrc-eclipse '/opt/eclipse-3.3/eclipse'
You can find out your current theme by executing,
gsettings get org.gnome.desktop.interface gtk-theme
Choose your fg/bg color code.
Also refer this post Change Eclipse sidebar vertical scope highlighting.
I am using Eclipse Luna(4.4.0) and trying to make it completely dark. So I Installed a theme plugin:
Eclipse menu -> Help -> Eclipse Marketplace, search "Eclipse Color Theme Plugin"
In “Windows Preferences”, selected the “Dark” theme and
Eclipse menu -> Window -> Preference -> General -> Appearance -> Color Theme,
choosed “sublime Text 2″. Done, I'm just changed everything to “Dark”.
But, scrollbars is still grey
Does anybody know how to make it dark too?
Thanks in advance!!
Eclipse's built in dark theme is very problematic.
Check out the DevStyle plugin from Eclipse marketplace. It creates dark themes up to par with other IDEs like IntelliJ.
https://marketplace.eclipse.org/content/darkest-dark-theme-devstyle
For all mac users out there, you can change it in system preferences:
Apple menu > System Preferences, then click General > Show scroll bars
Select “Automatically based on mouse or trackpad.” i voila :)
cmd+space
System Preferences
General
Show scroll bars: "When scrolling" (see screenshot)
In my opinion though, this isn't a great solution because you don't see the scroll bar sometimes and sometimes it still shows the bright grey scroll bar depending on where you put your mouse.
If you want to get rid of that scrollbar, enable Show whitespace characters in
Preferences > General > Editors > Text Editors
So I've been using Eclipse on my mac for the past 4 months with no problems but suddenly things are acting up. Before, Eclipse would show me a red dot on the lefthand scroll bar when I was working on a class in a project. Now, for some reason, all it does is grey-out that line number but it does not show me that dot like it used to. I've tried restarting both Eclipse and my computer, I've tried working on different projects and classes, I've made sure a project builder is selected, and I've checked that the "show errors" options are all checked. I do not like having to have another window open to see exactly where all my errors are; I preferred just having the red section on my class screen. Any other suggestions?
Thanks everyone!
You could try looking here: Error indicators in file margin in eclipse indigo
Open Preferences, select General/Editors/Text editors/Annotations, and make sure that the errors/warnings are selected to be displayed in the Vertical and Overview rulers.
or
Figured it out, if you go to system preferences > general > click the "when scrolling" button, to only show the scroll bar when scrolling it fixes it. Mine was previously on "always". I restarted eclipse and it shows the errors/warning message etc now.'