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.
Advertisement

About bpostaci
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 )

Facebook photo

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

Connecting to %s

%d bloggers like this: