Bug 113570 - ctrl + left / ctrl + right should move cursor over words
Summary: ctrl + left / ctrl + right should move cursor over words
Status: CLOSED DUPLICATE of bug 140489
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 3.0   Edit
Hardware: All All
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-24 13:23 EDT by Daniel Felix Ferber CLA
Modified: 2008-07-10 11:35 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Felix Ferber CLA 2005-10-24 13:23:51 EDT
With ctrl+left/ctrl+right the editor cursor moves to the previous/next space  
caracter.  
In classes or attriute names with many words, it would be nice if the cursor  
moves to the next uppercase letter.  
  
for example:  
LongClassName  
  
Pressing ctrl+right would move the cursor to the "C", and if pressing again, to  
the "N".  
 
Similar behaviour can be found at the JEdit editor.
Comment 1 Marcel Mettes CLA 2006-08-11 05:13:52 EDT
In contrast with the aforementioned problem, personally I
have a problem with stopping inside a C identifier.
A C identifier can consist of A-Z, a-z, _, 0-9.
Java also allows the $ character.

So stopping at the B in aaBbb should be optional.

Furthermore, stopping at the underscore in aa_bb should also be optional.
I read in the Java area that there is one option, Smart caret positioning
in Java names, to change this behavior. A lot of talk is there about
following the platform settings.

I would like propose some checkboxes to force the behavior,
overriding any platform behavior, and/or the possibility to choose
which characters make up a "word" for the editor's ctrl-left/ ctrl-right.
The "word" is the one as seen mentioned in the Prefences->General|Editors|Keys
definitions.
Comment 2 Anton Leherbauer CLA 2006-10-13 08:32:07 EDT

*** This bug has been marked as a duplicate of 140489 ***
Comment 3 Daniel Felix Ferber CLA 2008-07-10 11:35:38 EDT
Closing. The described feature has being added to CDT.