 |
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
alexej.gedert
Joined: 11 Jun 2013 Posts: 2 Country: Germany |
|
Multiline select with SHIFT+END wrong |
|
System: SSMS: 11.0.3368.0, SQL Assistant: 6.3.171 Prof., for MS Management Studio: Environment Integration: Full
Steps to reproduce:
With cursor at the start of a line
use SHIFT+DOWN ARROW to select multiple lines.
SHIFT+END at this point should expand the selection to the end of the current line (line with cursor on it).
Instead, it moves the starting point of the selection to the end of the top line (decreasing the selected text).
Bug or it is only by me ?
|
|
Tue Jun 11, 2013 7:55 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7948
|
|
|
|
I'm able to reproduce that too. is I press SHIFT+END twice, e.g.
SHIFT+DOWN ARROW -- selects 1st line
SHIFT+DOWN ARROW -- extends selection to the 2nd line
SHIFT+DOWN ARROW -- extends selection to the 3rd line
SHIFT+END -- extends selection to the end of the 3rd line
SHIFT+END -- removes selection from the 1st line and moves caret to the end of 1st line.
If I disable Smart Text Navigation option in the settings and restart the editor, I cannot reproduce the above behavior.
Note that Smart Text Navigation is mostly to ignore trailing spaces at the end of text lines.
PS. Try CTRL+ALT+H to select the current statement in one go, it's more efficient then selecting multiple lines line by line
|
|
Tue Jun 11, 2013 8:32 am |
|
 |
alexej.gedert
Joined: 11 Jun 2013 Posts: 2 Country: Germany |
|
|
|
yes, if I disable Smart Text Navigation option I cannot reproduce it too. Thank's for Tip.
P.S for comparison: In SSMS 2008 (R2) works selecting of multiple lines with Smart Text Navigation correctly.
|
|
Tue Jun 11, 2013 9:07 am |
|
 |
gemisigo
Joined: 11 Mar 2010 Posts: 2165
|
|
|
|
This must be related to SQL Server 2012. I experience the same in an earlier version of SSMS (11.0.3128.0) as well.
Toad is also affected (though a bit differently). Starting from the end of a line and using Shift + Up to select a few lines and the pressing Home to select the uppermost line will unselect the lowest one instead. Disabling Smart Text Navigation cures this one too.
|
|
Thu Jun 13, 2013 3:59 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7948
|
|
|
|
Thank you very much for all your input.
|
|
Thu Jun 13, 2013 8:04 am |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|