CFEclipse – In The Gutter

Eclipse Gutters

Today I was editing some code and for some reason (spacing out?) I noticed what the gutters were doing. The gutters are the area I have highlighted in the image above in yellow.

I knew about the TODO icon in the left gutter – but then I noticed the small yellow arrow. That is highlighting the line which contains text you searched for! (CTRL-H). Then notice the right gutter – the blue block is my TODO – the lighter blocks below my search text – so I can easily scan the entire document and clicking on the block will take you to that location.

These appear to be on by default. I clicked around a bit in the preferences very briefly and nothing popped out at me (doesn’t mean it’s not there!). If you know where to turn these on/off leave a comment!

While digging I did notice a “Quick Diff” option under the General > Editors > Text Editors section.

I enabled this as well as the “Show differences in overview ruler” option. Under “Use this reference for source” I selected “Pristine SVN Copy”.

Now I see this in my left gutter:

Show Diff

When I hover my mouse over the gutter it pops up the difference between my copy and the last from SVN which is very handy if you have memory problems like I do :)

Recent Related Posts

4 thoughts on “CFEclipse – In The Gutter

  1. Didn’t know about the quick diff, it is a good find.

    As for the search arrows you can enable/disable them by General -> Editors -> Text Editors -> Annotations. Choose the Search Results and then you can toggle the vertical ruler for the gutter arrows.

  2. Jim,
    I found these recently myself in Flex Builder. In Flex builder, when you select a function or a tag it highlights blue and on the right there is a light blue rectangle everywhere that function or tag appears in your document. I would like to mike my markers darker as they are hard to see. I poked around but didn’t see a setting for that. If you find out more, please post back. Thx!

  3. Here is another trick for you. Say you are working on a long script and you are constantly scrolling between two or more parts of the page.

    > Highlight a snippet of code where you are working
    > place your curser over the line numbers
    > right click >> Add book mark
    > Repeat in the other part(s) of the page you are working on.
    > Notice the green markers in the gutter.
    > Now click on them.

    Yeah, that is what I said. ;)

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>