[Qt-creator] ctrl-shift-arrow selecting includes whitespaces

Boy Lenssen Boy.Lenssen at esaote.nl
Mon Feb 9 11:44:39 CET 2009


I've send another e-mail with the forgotten attachment included, but
Bjorn asked me to reply with the attachment, so just to be sure, here it
is

 

________________________________

From: Boy Lenssen [mailto:Boy.Lenssen at esaote.nl] 
Sent: Monday, February 09, 2009 11:15 AM
To: qt-creator at trolltech.com
Subject: [Qt-creator] ctrl-shift-arrow selecting includes whitespaces

 

Hi,

 

I often use the key combination ctrl-shift-arrow for selecting text.
When I do this, all whitespace behind a word I select is included in the
selection.

 

I see this also happens in other editors and is normal behaviour.
Because when using ctrl-arrow to move passed words, it jumps to the
beginning of the next word.

 

What I would like is an option to treat (successive) whitespace as
words. In case between two words a tab, space and a tab is located, or 5
spaces after each other, they would be treated as one word.

 

Example:

 

int something(<space>, <space>, <space>, <tab>)= 5;

 

int, something, = and 5 are words, but treat (space, space, space, tab)
as one word also.

 

I've added an image (created with my great MSPaint-ing skills! :-) ) to
show my issue. 1 is the situation with nothing selected. I want to
select "int something". I put the cursor at the beginning of line 17,
hold ctrl-shift and with the arrow I tick twice to select the two words.
In 2 you can see the white spaces are also selected.

 

Kind regards,

Boy.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20090209/19511de4/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1.JPG
Type: image/jpeg
Size: 20504 bytes
Desc: 1.JPG
Url : http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20090209/19511de4/attachment.jpe 


More information about the Qt-creator-old mailing list