In Eclipse, how do you change the foreground and background color in the default text editor for plain text files with no file extension? - eclipse

In Eclipse for C/C++, how do you change the foreground and background color in the default text editor for plain text files, that is, files with no file extension?
I tried going to window > preferences > general > editors > text editors > appearance color options.
Here it says foreground color and background color, and after hitting 'apply', the color of the text changes briefly, but returns to default as soon as you close the 'preferences' window.
The other thing I tried is to set file associations and try to set a different internal editor as the default for plain files. However it seems to only work for files that have an extension.
I often have to deal with existing files in a repository that are actually bash scripts, but the files have no extension. It is annoying then to not even be able to configure the settings of the editor. If I can't find a solution for this, it looks like I either have to 'embrace the suck' or use a different editor outside of Eclipse.
I'm working on Kubuntu 2020-04 with Eclipse 2020-06 and using the dark theme.
It looks like the same problem as here, but I couldn't find any satisfying solution. The problem was reported there on 2020-01-03, so it actually predates my Eclipse version.

Thanks to #howlger for suggesting to upgrade. After upgrading to Eclipse version 2020-12, the first method I mentioned in the question works, that is, going to window > preferences > general > editors > text editors > appearance color options. Here you can change the foreground color and background color and it will actually stay the color you selected.

Related

PyDev colors - what is this color called and how do I change it?

I'm using Eclipse 20190917-1200 with PyDev for Eclipse 7.4.0.201910251334. Whenever I move my cursor into a key word it's highlighted as shown below. I can't find this color anywhere in the PyDev settings. One question is, what is that behavior called, but more importantly, how can I change that insane color!
Go to general > editors > text editors > annotations > Occurrences (PyDev) and change the colour or uncheck it.
Hope this works for you !!

Eclipse Background Color will not change OSX, Pydev

Please read before marking as duplicate, I have searched for an answer to my specific issue for a long time and have not found one.
My Eclipse (Luna 4.4.1) IDE refuses to change the background color for the text editor. Please see the screenshot. It seems to be black when the IDE starts, then after a few seconds it switches to white.
I have tried (with restarts of the program between changes):
Eclipse > Preferences > General > Appearance (Set to Dark or Moonrise)
Eclipse >
Preferences > General > Appearance > Color Theme (Tried many dark themes)
Eclipse > Preferences > General > Editors > Text Editors > (Background Color => Black)
I'm using the PyDev Pluggin, but I've also tried switching to Java and other perspectives and have the same problem. I've tried installing the Moonrise theme, and uninstalling and reinstalling the same as well as the Eclipse Color Theme plugin as well.
Has anyone seen this before and figured out a solution?
Updated:
If I change the IDE to the Java perspective and open a Java file I still have the annoying white background, but in a slightly different way:
I have uninstalled the moonrise theme and I am just using the Dark Theme here. I think this rules out Pydev influencing the colours and it must be something at the general editor level. Though again, I have set the background color to black for the general editor.
MAJOR UPDATE - The bug is somewhat reproducible
Ok, so I haven't solved the problem but I've figured out what's triggering it! When I open Window > Customize Perspective, the background switches to the correct black style and then stays that way until I restart the IDE. That's without me changing any settings, just the mere act of opening that dialog. But why?
I guess my answer to the this post How to change color of Editor in Eclipse works for you.
I think its because of Editbox plugin. Make EditBox Off then check. If not working uninstall EditBox then check.
Its because of conflicts between Editbox colour settings and eclipse theme settings.
From patchnotes, pydev seems to support the eclipse darktheme since 3.6.0 :
http://pydev.org/history_pydev.html
The PyDev editor supports the new dark theme in Eclipse 4.4 (so, when it's chosen the editor colors are properly updated).
I believe the pydev editor has his preferences, so if you want to edit colors for the editor, it might be under :
Window > preferences > PyDev > Editor
You can find some resources to customize the pydev editor (if still not answerint to eclipse dark theme) here : http://pydev.blogspot.fr/2009/07/creating-dark-theme-and-exporting-and.html
You can try disabling pydev editor through file type extension but not sure it will be a nice syntax coloring (window>preferences>pydev>editor>code style>filetypes)

How to make Eclipse color settings permanent?

I installed Eclipse Luna. I like what the built-in Dark theme does to all the views surrounding the actual text editor. However, I like to use my own color theme Solarized Dark on the editor and furthermore I'm changing a few highlight-box colors in the Editor Annotation settings. I'm able to make all of those configurations just fine. It takes a few minutes however and every time I start Eclipse again all my color settings are back to the default Eclipse Dark Theme, including text editors, highlights and such.
How can I make the aforementioned settings permanent, as in not having to tweak them again every time I start Eclipse?
in Eclipse, Window -> preferences ,
in General / appearence /Colors and Fonts
For save changes click first on "Apply" and after "OK"

Eclipse Juno: How to change background of code folding regions

I'm currently using Eclipse Juno (the latest version as of Aug 30, 2012). I switched to a dark theme using Eclipse Color Theme plugin.
I modified some background colors to match this dark theme. However, I can never find an option to change the back ground of the code folding regions (the space between line numbers and the code).
Please help me to change this background color!
I was able to solve this problem using Eclipse-Juno on Ubuntu with the Dark Juno theme installed by doing the following:
Click on Window->Preferences to open up your Preferences panel
Open up the tab for the language you are using. For me this was C/C++
Goto Folding, and then uncheck "Enable folding when opening a new editor".
Click Apply and OK.
Now go back to your editor, and close and reopen any editors that you may have open (restarting Eclipse should also work). The default code folding will be gone, along with the white background.
You can re-enable code folding at any time (with a black background) by typing CTRL + NUMPAD_DIVIDE.
To fix this open the following file in a text editor:
org.eclipse.ui.editors.prefs
Once open look for the following line:
printMarginColor=101,101,101
The numbers represent the current color of the margin in RGB format. Simply change the color to your desired color, save and close the editor. Save and close any editor tabbed windows in Eclipse and re-open them .
If you are in Linux the org.eclipse.ui.editors.prefs file will be located in the following location:
~/[your workspace folder]/.metadata/.plugins/org.eclipse.core.runtime/.settings

I want to change the color of the text editor of Eclipse easily!

Eclipse is a default, and a background color is white,
but many developers uses the dark color (black) and thinks whether it is used the letter color with white or green.
I can't find tools which the color template can change an editor color of Eclipse by a blow very much.
Do you know featured WEB sites.?
If get possible to choose dark color among a beginning like MIFES, makes me Happy
I don't fully understand your question but for changing Eclipse's editor background color just go to menu: Window > Preferences, and in the dialog go to General > Text Editors. In that form just select Background color from the list Appearance color options and use the color picker in the right to change it. For other formatting options go to General > Colors and Fonts in the same dialog.
NOTE: All these formatting changes are saved in your workspace if you create a new one it'll start with the default settings
As a very late follow-up (just found this via search), there is now Eclipse Color Theme, a plugin you can grab from the marketplace. It enables you to use color themes from various sites and load them directly.
They even got a few relatively close Netbeans-lookalikes (that's why I was looking for one).
If you mean "themes" as Netbeans has "Dark pastels" theme - then Eclipse currently doesn't have this feature.
In the newer version of eclipse, we have an option Switch to Theme...
This should resolve the issue.