views:

38

answers:

3

In Eclipse and Xcode it is possible to jump directly to the documentation for a function/class from the editor. Does Visual Studio provide this functionality?

+1  A: 

Ah, try hitting F1 when your cursor is over a function or class. That should initiate a search in the MSDN documentation. Give that a shot!

EdgarVerona
Strange, F1 wasn't working before
Casebash
+1  A: 

I am not aware of Eclipse. But in visual studio, you can do the documentation within the studio. You can document the class or a method by putting the details in the comment section (with each line starting with a '///') like the following:

/// <summary>
/// Adds one item at a time to the cart
/// </summary>
/// <param name="itemToBuy">Selected item from the catalog</param>
/// <param name="qnty">Quantity bought</param>
public void AddItem(item itemToBuy, int qnty, double price, bool isImported)

This is for doing documentation for your own code.

To get help, or see documentation, pressing F1 or Ctrl+F1 while keeping the cursor on top of the item takes you to the MSDN.

Kangkan
Ctrl+F1 gives me the following message: "Waiting for second key of chord".
Casebash
Have you tried F1 and saw MSDN documentation?
Kangkan
F1 works, just not Ctrl+F1
Casebash
+1  A: 

Try F1 or Ctrl + F1.

Visual Studio Default Settings Shortcut Keys

Integrated Help shortcut keys

Also try google.com next time ;-)

Btw. with F12 you can go to the declaration of selected item in code.

Mike
I did Google, its just that F1 wasn't working before (I think I was mouse overing rather than clicking)
Casebash