Eclipse Rulers Background Color

  • How to change background color of Eclipse Vertical Ruler?
  • What is the name of a ruler / column that includes circular circles?
  • How to change the background color of the above ruler / clomun?
+6
source share
4 answers
what is name of the ruler/column that includes the folding circles? 

It is known as the edge of code addition, or simply drops margins.

 How can I change eclipse Vertical Ruler background color? How can I change the background color of the above ruler/clomun? 

I am afraid that Eclipse has a number of unsettable user interface settings, and these are two of them. A function request has already been raised to allow code markup changes. Background color for code folding Given that the request has existed for more than 5 years, I'm not very optimistic, you will get a solution. You can comment on this issue to raise it.

You can also create feature requests on their bugtracker page. https://bugs.eclipse.org/bugs/

+3
source

I usually use my colors with the default settings that Eclipse provides, but I know many people who like alternatives for Eclipse (usually using a dark theme), so I decided to try ...

To change the default colors, there are several places that you should view in the window> settings menu:

 General > Editors > Text Editors (to set the background color / selection color, etc. for all editors) General > Editors > Text Editors > Annotations (to set the colors for the occurrences highlight, tasks, etc.) Pydev > Editor (to set the pydev editor-related colors) General > Appearance > Colors an Fonts (to set what not available in the other places) 

Now that you have set these colors correctly, one thing you really have to do is export the settings you just changed so that you can import them later.

To do this, go to the menu "File"> "Export"> "Settings" and export all the settings to a file, then open this file and delete all non-color settings (except for the export_file, which is required by Eclipse when importing) - note so that you can save other settings that you enter all the time too, and it would be easier to do this with a clean Eclipse installation only with what you want to configure (so that you don't have too many settings in this settings file).

You can later import these settings into Eclipse via File> Import> Preferences.

The dark theme settings I'm using give the result below (note that you may have to restart Eclipse so that the left ruler looks right):

+1
source

You can customize only what is shown in the vertical bar using "Settings" → "General" → "Editors" → "Text Editors" → "Annotations". You cannot disable it. Hope this helps!

0
source

This is not a complete answer, but here is the SWT spy log I extracted during debugging:

 AnnotationRulerColumn$5 {}@140230138540928 Style: NO_FOCUS | LEFT_TO_RIGHT | DOUBLE_BUFFERED Layout Data: null Bounds: Rectangle {44, 0, 9, 206} Children: Peers: *AnnotationRulerColumn$5 {}@140230138540928 Layout Data: null Bounds: Rectangle {44, 0, 9, 206} AnnotationRulerColumn$5 {}@140230141853568 Layout Data: null Bounds: Rectangle {0, 0, 12, 206} LineNumberRulerColumn$4 {}@140230140489248 Layout Data: null Bounds: Rectangle {12, 0, 32, 206} Parent Tree: [CUT] Canvas {}@139916372127008 Style: LEFT_TO_RIGHT | DOUBLE_BUFFERED Bounds: Rectangle {0, 0, 954, 276} Layout: org.eclipse.jface.text.source.SourceViewer$RulerLayout@4a767290 LayoutData: null CompositeRuler$CompositeRulerCanvas {}@139916355542160 Style: LEFT_TO_RIGHT | DOUBLE_BUFFERED Bounds: Rectangle {0, 0, 29, 258} Layout: org.eclipse.jface.text.source.CompositeRuler$RulerLayout@76b6b86 f LayoutData: null 

``

0
source

Source: https://habr.com/ru/post/920268/


All Articles