Solved

Control-T in Visual Studio

Posted on 2008-06-26
2
629 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
Comment Utility
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 62

Expert Comment

by:Fernando Soto
Comment Utility
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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…
In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now