Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse Juno: How to change background of code folding regions

enter image description here

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!

like image 698
Nullptr Avatar asked Aug 31 '12 01:08

Nullptr


People also ask

How do I change the background color in eclipse?

To change the color theme in your editor: Go to Window | Preferences | General | Appearance | Color Theme. The list of available Eclipse color themes is displayed.

How do you fold in eclipse?

To enable code folding, go to the Folding Preferences page, accessible from Window | Preferences | PHP | Editor | Using Code Folding . If Code Folding is enabled, minus signs will appear in the Annotation Bar next to code blocks which can be folded.


1 Answers

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.

enter image description here

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.

enter image description here

like image 186
Dustin Biser Avatar answered Sep 23 '22 02:09

Dustin Biser