Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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!

like image 232
OBL Avatar asked Feb 07 '26 19:02

OBL


1 Answers

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

like image 141
parapura rajkumar Avatar answered Feb 12 '26 06:02

parapura rajkumar