?
Solved

Control-T in Visual Studio

Posted on 2008-06-26
2
Medium Priority
?
642 Views
Last Modified: 2013-11-26
Story.

So I develop my sites in Visual Studio.  Every once and a while I would have two characters get displaced, more specifically, swapped positions.  I figured that while I was editing, I would leave the window open and continue to do something on my second monitor and then come back and accidentally highlight and drag a letter one position over.  I couldn't believe I was doing this so often.  A colleague asked me a question yesterday that required me to look something up.  I went over the the other monitor, and without giving the browser focus, and I hit control-t to open a new tab.  Where I then realized that control-t swaps characters around the insertion point.  I was very relived to find this out.


Anyway, I could have done without the story, but this question remains.  What in the world is this feature used for?  I cannot imagine a scenario in which I would use this feature.  
0
Comment
Question by:Shiny
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 2

Accepted Solution

by:
kewlkewl1 earned 1500 total points
ID: 21875349
Transpose a single character: Ctrl+T
Transpose a single word: Ctrl+Shift+T

This procedure switches the characters or words, then moves the cursor to the right.  Transpose is useful if you mistype a word or write a sentence or code segment with words in the incorrect order.

Example:
Suppose you have a line of code that originally looks like this:
     new SqlCommand("trans", stored_procedure, conn);

Pressing Ctrl-Shift-T repeatedly on the word trans would yield the following:
    new SqlCommand("stored_procedure", trans, conn);

and finally this:
    new SqlCommand("stored_procedure", conn, trans);

Source: http://www.visualapl.com/library/aplnext/mergedProjects/Visual%20Studio%20Book/Visual_Studio.htm
0
 
LVL 63

Expert Comment

by:Fernando Soto
ID: 21875629
Hi Shiny;

The only good reason for this may be for people with disabilities such as dyslexia. Microsoft was not more specific then to say char-transpose.

Fernando
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question