HighTechTalks DotNet Forums  

Transposing Words Using Ctrl+Shift+T

Visual Studio.net (IDE) microsoft.public.vsnet.ide


Discuss Transposing Words Using Ctrl+Shift+T in the Visual Studio.net (IDE) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Nathan Sokalski
 
Posts: n/a

Default Transposing Words Using Ctrl+Shift+T - 09-03-2009 , 09:26 PM






I have recently learned about the Visual Studio 2008 keyboard shortcut
Ctrl+Shift+T to transpose two words. I have been able to use this in some
situations, but not in others. Here are a few examples (I will put the |
character in the location where the cursor is when I used the keyboard
shortcut):

Text Beforehand: Public Sub New(|ByVal value As Decimal)
Text Afterwards: Public Sub New(ByVal value As Decimal)
Expected Result: Public Sub New(value ByVal As Decimal)
Note that there were no changes in this case.

Text Beforehand: Public Sub New(ByVal |value As Decimal)
Text Afterwards: Public Sub New(ByVal As value Decimal)
Expected Result: Public Sub New(ByVal As value Decimal)
The result is what I would expect in this case.

Text Beforehand: Public Sub New(ByVal| value As Decimal)
Text Afterwards: Public Sub New(value ByVal As Decimal)
Expected Result: Not sure what to expect, but the result seems to be
logical
I am was not sure what to expect with this one, since I think the cursor is
in the middle of a word.

Text Beforehand: Public Sub New(ByVal value |As Decimal)
Text Afterwards: Public Sub New(ByVal value Decimal As)
Expected Result: Public Sub New(ByVal value Decimal As)
The result is what I would expect in this case.

I have also tried several other situations, but here are some of the basic
questions I think need answered in order for me to completely understand
what to expect:

1. What is the exact process (all details included) used to determine the
words that will be transposed?
2. What character(s) are considered part of the word while transposing? Note
that in example #4 above, the space between "As" and "Decimal" is still
between the two after they are transposed, even though if I understand
correctly the space is part of the word "As ".
3. What happens when the character is at different positions in a word?

I may sound like a little bit of a nitpicker here, but I think that in order
to really be able to use this keyboard shortcut, you need to understand
EVERY detail of how Visual Studio 2008 determines what to transpose
(otherwise, you will end up fixing these things by hand anyway, therefore
making the keyboard shortcut kind of pointless to use). Thanks.
--
Nathan Sokalski
njsokalski (AT) hotmail (DOT) com
http://www.nathansokalski.com/

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.