Solved

Control-T in Visual Studio

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Entity Framework 7 43
Javascript to set controls visibility 5 38
VB.NET (2008) - Refactoring Question 2 21
How to seperate number and letters from a string 3 11
It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
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…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

832 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