Solved

Control-T in Visual Studio

Posted on 2008-06-26
2
639 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 500 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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

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…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

726 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