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?
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.
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.
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
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With