OBL
OBL

Reputation: 1357

VS2010 Extension for msdn and stackoverflow

Is any one aware of an extension for visual studio that will show msdn help or any related stackoverflow post for a function right in the IDE. So that we don't have to google it?

Thanks!

Upvotes: 3

Views: 88

Answers (1)

parapura rajkumar
parapura rajkumar

Reputation: 24403

Create a macro like so

   Sub SearchSelectionOnStackOverflow()
        DTE.ItemOperations.Navigate("http://www.stackoverflow.com/search?q=" & DTE.ActiveDocument.Selection.Text)
    End Sub

ItemOperations.Navigate will browse to an URL. Basically the macro will take the current selection in the active document and search for it on stackoverflow and show the results embedded in Visual Studio.

Edit and Programmatically Create Macros talks about creating and editing macros. For convenience you can assign a keyboard shortcut

Upvotes: 2

Related Questions