Using keyboard shortcuts for evaluating and navigating through script sessions in the C# interactive window
In this section, we will walk you through the common keyboard shortcuts available in C# interactive scripting and show you how to use them in the Visual Studio interactive window.
Note
As demonstrated in the last step of the previous recipe, you can use the #help REPL command in the interactive window to see the entire list of keyboard shortcuts available in the C# interactive window.
Getting started
You will need to have the Visual Studio 2017 Community edition installed on your machine to execute this recipe. You can install a free community edition from https://www.visualstudio.com/thank-you-downloading-visual-studio/?sku=Community&rel=15.
How to do it...
- Open Visual Studio and open the
C# Interactive
window by clicking onView
|Other Windows
|C# Interactive
. - Type the string constant
"World!"
and hit the Enter key to evaluate and output the string. - Type
"Hello, " +
and move the cursor...