Soup to Nuts Lab 1: A Tour of Visual Studio.Net - Exercise 5: Configuring the Visual Studio .NET IDE (Page 6 of 6 ) Scenario In this exercise, you will explore a few of the many different configuration options available for customizing the .NET IDE. tasks Detailed Steps - Turn on line numbers.
- Click Tools and choose Options.
Note the many different categories for choosing options in the IDE.
- In the Options tree, click Text Editor.
- Click C# if you are using C#, Basic if you are using Visual Basic.
- Click General.
- Under Display, check Line numbers.
- Click OK.
Line numbers will now be displayed in the code pane on the left-hand margin.
- Add a custom task tag to the tasks list.
- Click Tools and choose Options.
- In the Options tree, click Environment.
- Click Fonts and Colors.
- Ensure the Show settings for combo box is set to Text Editor.
Notice the different categories you can set the font for.
- Click the Font (bold type indicates fixed-width fonts) dropdown.
- Choose Comic Sans MS.
- Click the Size dropdown.
- Choose 12.
- Click OK.
View the code pane and notice how the font has changed.
- Use steps a through i to change the Text Editor font back to Courier New, 10 pt. (the default) .
- Add a custom task tag to the tasks list.
- Click Tools and choose Options.
- In the Options tree, click Environment.
- Under Environment, click Task List.
Note the pre-loaded tasks in the Token list: HACK, TODO, UNDONE, and UnresolvedMergeConflict.
- In the Name box, type RENAME.
- Click Add.
RENAME now appears in the Token list:
- Click OK
- In Solution Explorer, double-click Customers.
The Customers form loads into the Forms Designer in the middle pane of the IDE.
- On the Customers form, double-click the Get Customer button.
- In the code pane, enter a comment RENAME on the line above the button click
method declaration.
C#
//RENAME private void button1_Click(object sender, EventArgs e) { ...
Visual Basic .NET ‘RENAME Private Sub Button1_Click(ByVal sender As Object, _ ByVal e As EventArgs) Handles Button1.Click ...
- In Solution Explorer, double-click Customers.
The Customers form loads into the Forms Designer in the middle pane of the IDE.
- Click View and choose Show Tasks | All.
The Task List pane appears at the bottom of the IDE.
- In the Task List pane, double-click RENAME.
The code pane opens, and the RENAME comment is highlighted indicating that the developer needs to take action on the named task.
 | Take Microsoft software for a test drive. With MSDN Virtual Labs, you get full access to all available Microsoft products through 90-minute modules, each with its own downloadable manual. Try this lab out now. |
|