Visual Studio IDE free copy using ALT


I just wanted to copy that code without the comments. So, the trick is to simply press the Alt button, and then highlight the rectangle you like.(e. g. below).

protected void MyCommand(string e)
    {
        //if (e == "Hello")
        //{
        //    lblFog.Text = e.CommandArgument.ToString();
        //}
    }

In the above code if I want to select :

if (e == "Hello")
{
    lblFog.Text = e.CommandArgument.ToString();
}

Then I press ALt key and select the rectangle and no need to uncomment the lines.
Advertisements

About bpostaci
Sr. Support Escalation Engineer in Microsoft.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: