Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the Code Definition Window in Visual C++ 2008 Express?

I am working on the Sphere Online Judge problems (OK I am only on my 2nd lol) and using VC++ 2008 express and have just noticed the "code definition window". What exactly does this thing do? Is it any use to a beginner like me?

like image 201
Silvanus Avatar asked Nov 20 '09 21:11

Silvanus


People also ask

What is code definition window?

The code definition window is a “helper” window that works in close conjunction with the code editor window by displaying definitions for symbols selected within the code editor. It is actually a near clone of the code editor window, with one big exception: It is read-only and does not permit edits to its content.

How to Go Back in Visual basic?

By default, Alt+Left navigates back, and if you remove the Alt+Right shortcut for Edit. CompleteWord in Microsoft Visual Studio, Alt+Right navigates forward.


1 Answers

The code definition window gives you additional context for the code you have the cursor over.

For example if you have the cursor over Cat in the following code:

Cat c;

Then it will display the definition of the Cat class in the code definition window.

If you have the following code:

c.meow();

And you have the cursor over c, it will show you where c was defined. (i.e. the line of code: Cat c;)


Instead of using this window, you can simply right click on any part of code and select go to definition.

like image 99
Brian R. Bondy Avatar answered Nov 15 '22 05:11

Brian R. Bondy