0% found this document useful (0 votes)
26 views

Browsing and Navigating Code

The document discusses tools in Visual Studio for browsing code, including the Navigation bar and bookmarks for navigating source code, and the Object Browser, Class View, and Code Definition for viewing compiled assemblies. It also provides an overview of Visual Basic and C# as popular .NET programming languages supported by Visual Studio.

Uploaded by

Mahesa Sudiro
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views

Browsing and Navigating Code

The document discusses tools in Visual Studio for browsing code, including the Navigation bar and bookmarks for navigating source code, and the Object Browser, Class View, and Code Definition for viewing compiled assemblies. It also provides an overview of Visual Basic and C# as popular .NET programming languages supported by Visual Studio.

Uploaded by

Mahesa Sudiro
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 1

Browsing and navigating code

Often, you need to browse your own code or try to navigate your way through code that someone else has written. Visual Studio provides two basic kinds of tools for browsing code: When you have the source code When you have a compiled assembly The Code Editor has the following tools for browsing your own source code: Navigation bar: Allows you to jump to the classes and methods defined in a source code file Bookmarks: Allow you to place a bookmark in your code The Navigation bar appears at the top of a source code file in the Code Editor. The left drop-down box lists types or classes that you can find in the source code file. After selecting a type, you can view the types members in the right drop-down list. Selecting a member takes you to its declaration in source code. Figure 1-9 shows an example of selecting a types member from the Navigation bar. A bookmark sets a place in code where you can jump to via the Bookmark window. To set a bookmark in source code, do the following: 1. Position your cursor on the line where you want to set the bookmark. 2. Choose View Bookmark Window to open the Bookmark window. 3. Click the Toggle button on the far left of the Bookmark window to set the bookmark. 4. Type a descriptive name for the bookmark. After you set a bookmark, double-click the bookmark in the Bookmark window to jump to that place in the code.

138

Exploring Visual Basic and C#

Figure 1-9: Use the Navigation bar to select the types and members declared in source code.

Visual Studio provides the Object Browser, Class View, and Code Definition for viewing assemblies. See the section on browsing types in Chapter 2 of Book III for more information.

Exploring Visual Basic and C#

Visual Studio supports many programming languages. Visual Basic and C# are two popular .NET programming languages. This section shows you the highlights of using Visual Basic and C# with Visual Studio 2010. Mastering the basic syntax of programming languages, such as Visual Basic and C#, isnt the same as learning how to program. When you discover how to program, you also discover basic programming constructs, such as conditionals and iterators. By grasping the concepts of programming constructs, you can easily and quickly pick up any language syntax.

You might also like