in 02-Editing/04-Selecting_code.cs [16:40]
public void ExtendAndShrinkSelection()
{
// 1. Place the caret inside "importantValue" and expand selection
// Expand selection again to select the whole line
// Expand selection again to select the body of the method
// Expand selection again to select the whole method
// Expand selection again to select the whole class
// Expand selection again to select the whole namespace
// Expand selection again to select the whole file
// 2. Place the caret inside "importantValue" and expand selection a couple of times
// Shrink selection to reduce the selection back to what it was
var importantValue = 32;
if (importantValue > 42)
{
try
{
// 3. Place the caret on WriteLine and repeatedly Extend and Shrink selection
Console.WriteLine("Hello");
}
catch (Exception e)
{
Console.WriteLine(e);
}
}
}