Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 363933

Summary: [navigation] Allow user to specify word delimiters when selecting words via keyboard Ctrl Shift Arrow
Product: [Eclipse Project] Platform Reporter: Steven InAz <steven.dawson.az>
Component: TextAssignee: Platform-Text-Inbox <platform-text-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert
Version: 4.2   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Steven InAz CLA 2011-11-16 11:05:40 EST
Build Identifier: I20110613-1736

There are a couple of common conventions when naming things in code:

CamelCase
word_delimited

The behavior when double clicking on the above is identical, the entire word is selected.

When I try select using the keyboard (CTRL-SHIFT->) CamelCase is selected as expected.  The selection processor stops at _ when trying to select word_delimited.  _'s are treated as word delimiters, requiring my to hit > 3 times to do what should be a single keystroke.  It looks like _ is being treated as an operator.

I'd request that either adding "_" to the character list that is used to define variable names, or allowing users access to access this list would be helpful.

Reproducible: Always

Steps to Reproduce:
1.  Open any editor
2.  Type this_is_a_strange_variable_name
3.  Type Ctrl-Shift-< and you should see that just name is selected.  Hitting < a second time, will select the _ and hitting < a total of 11 times selects the entire variable name

It should be noted that simply double clicking the name selects the entire name, so therein lies the code difference.
Comment 1 Dani Megert CLA 2011-11-17 02:56:58 EST

*** This bug has been marked as a duplicate of bug 117888 ***
Comment 2 Dani Megert CLA 2011-11-17 02:58:48 EST
Didn't want to mark this as dup of 117888.
Comment 3 Dani Megert CLA 2011-11-17 03:12:08 EST
This works for me as expected in the Java editor. If you are using a different coding editor then please file the bug there. It's up to them to define semantics into things.