Selecting with double click in Eclipse

When I double click on a variable that has an underscore in it's name, I would like Eclipse to select the entire variable name.  Example: User_count: if I double click on count, count gets selected, if I double click on User, User gets selected.
I wish User_count were selected.
I know, I know...
Name my variable UserCount.  Funny.  Haha.
psennAsked:
Who is Participating?
 
adrpoConnect With a Mentor Commented:

I believe you should contact the author.
The idea is that when you double click on an identifier the whole identifier is selected.

This is implemented in general with something like: walk char by char left and right of the cursor until you find a char on each side that doesn't belong to a given set. Then you select the word between them. It seems that "_" is not part of an identifier in that specific editor.

Cheers,
za-k/
0
 
yaxhCommented:
Well, I am using 'Version: 3.1.0' of Eclipse SDK and it's working as per your requirement. I guess you need to upgrade your eclipse installation or if you already have the latest one then we will figure out something else(perhaps).
0
 
psennAuthor Commented:
Europa 3.3.0
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
adrpoCommented:

Hi,

In Eclipse 3.2 the behaviour is the same as yaxh described.
It selects the entire variable. This happens in the Java Editor.
What editor are you using? Java? C++?
Every editor can redefine the double-click behaviour, so
please let us know what editor are you using.

Cheers,
za-k/



0
 
adrpoCommented:

Hi again,

I just installed Eclipse 3.3.0 (Europa) and the functionality is the same in the Java Editor.
Double click selects the entire User_count variable.

So it seems you are talking here about a different editor, so let us know which.
Or at least, tell us the extension of the file: *.java? *,c? *.txt? as the editors are
activated on a specific extension.

Cheers,
za-k/
0
 
psennAuthor Commented:
> Every editor can redefine the double-click behaviour
I didn't realize.
It's cfeclipse.  Should I post a message to the author?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.