Syntax coloring for method names?

One thing I've been missing a lot in IDEA (over emacs) is the ability to
specify a different color for method names in method declarations. When I
quickly browse through code, I search for method names first before anything
else to get a feel of what my file is made of. The Structure view is helpful
but is not what I'm interested in at this point.

With the default color settings of IDEA, quickly browsing through code just
tells me that I have public void, public static void, public boolean methods
all over the place. But then I have to spend extra time trying to figure out
what the names actually are.

For example, for something like:

public void foo(..) {...}

I would love to be able to configure IDEA to color it like:

public void foo(...) {...}

(replace bold with any good-taste color)

Every time I load up a java file in emacs (it still happens..) I'm always
amazed at how much faster I can read through methods. Even Alt-Up/Alt-Down
in IDEA doesn't make me as fast because I still spend too much time parsing
the declaration looking for the name.

Has anyone else been wanting to do this? I've looked through the tracker but
haven't found anything similar to this.

(btw, I'm not talking about method calls which is a separate issue, just the
method declarations).

I'm interested in knowing what other people think on that.

Vince.


9 comments

Setup method name color in IDE settings/Colors and Fonts/Java code/Method name

--
regards,
Alexey Kudravtsev.
JetBrains, Inc
http://www.intellij.com
"Develop with pleasure!"


"Vincent Mallet" <xmalletva@tripos.com> wrote in message news:bnpo9b$p0i$1@is.intellij.net...

I entered an SCR for it,
http://www.intellij.net/tracker/idea/viewSCR?publicId=20026

>

Vince.

>
>


0

This solution isn't quite right though; if I understood Vince's request
properly he wants only the declaration of the method coloured in a
different way - your suggestion only colours all the calls to the method.

Regards,
Nathan.

ps. +1

Alexey Kudravtsev (JetBrains) wrote:

Setup method name color in IDE settings/Colors and Fonts/Java code/Method name


0

Vincent Mallet <xmalletva@tripos.com> wrote:

Every time I load up a java file in emacs (it still happens..) I'm always
amazed at how much faster I can read through methods. Even Alt-Up/Alt-Down
in IDEA doesn't make me as fast because I still spend too much time parsing
the declaration looking for the name.


Did you enable the method separator? That should make it easier to
detect where a method begins.

Dirk Dittert

0

As Nathan pointed out, I'm not trying to color all method calls everywhere
in the code (distracting and not very useful) but just the name in the
method declaration. Obviously IDEA has the information to make the
distinction but just doesn't provide the option in IDE settings/Colors and
Fonts/Java code/Method Name (declaration only). It'd be really nice though
:)

Vince.

"Alexey Kudravtsev (JetBrains)" <cdr@intellij.com> wrote in message
news:bnqf4n$pgg$1@is.intellij.net...

Setup method name color in IDE settings/Colors and Fonts/Java code/Method

name
>

--
regards,
Alexey Kudravtsev.
JetBrains, Inc
http://www.intellij.com
"Develop with pleasure!"

>
>

"Vincent Mallet" <xmalletva@tripos.com> wrote in message

news:bnpo9b$p0i$1@is.intellij.net...

I entered an SCR for it,
http://www.intellij.net/tracker/idea/viewSCR?publicId=20026

>

Vince.

>
>

>
>


0

Did you enable the method separator? That should make it easier to
detect where a method begins.


I tried for a little while but couldn't live with it, too distracting. It's
a little bit like using Alt-Up/Alt Down: I can quickly find where a method
starts, but focusing on the name would be made easier if I could make those
names stand out just a little bit.

Vince.


0

I agree that one should be able to highlight the names in declaration only. In fact I filed an SCR long ago (3008) that was closed as duplicate of 2485 (Though I meant declarations only, my request didn't mention it explicitly.)
I tried to highlight all method names but that adds way too much highlighting.
Declarations are soo much more important to scan quickly.
To mee it's a very strange idiosyncracy of IDEA to highlight all but the most important part of a declaration like

0

I was about to vote for your SCR ... but ....

State of this request was changed from "Open" to "Fixed"

Fixed in build: 963

:) :)

Edo

0

Jetbrainers make the world a better place to be.
THANKS Jetbrainers :)

Vince.

"Edoardo Comar" <e.comar.nospam@btinternet.nospam.com> wrote in message
news:bnra5o$18n$1@is.intellij.net...

I was about to vote for your SCR ... but ....

>

State of this request was changed from "Open" to "Fixed"

>

Fixed in build: 963

>

:) :)

>

Edo

>


0

Please sign in to leave a comment.