add a reference to the System.Web namespace (for HttpUtility) to the module.create a new Module with a name of your choice under "MyMacros". I tested the macro in VS.NET 2003 and VS.NET 2005 and it works great with no modifications in either environment. Private Sub SelectWord(ByVal sel As EnvDTE.TextSelection)ĭim pt As EnvDTE.EditPoint = () Private Function SelectionText(ByVal sel As EnvDTE.TextSelection) As String Private Function OutputWindowSelection() As Stringĭim w As Window = ()ĭim owp As OutputWindowPane = ow.OutputWindowPanes.Item(ow.ActivePane.Name) Private Function HTMLEditorSelection() As Stringĭim hw As HTMLWindow = ĭim tw As TextWindow = hw.CurrentTabObject Private Function ActiveWindowSelection() As String It actually works with any highlighted text in the IDE - including highlighted text from the Output window:ĭim s As String = ActiveWindowSelection().Trim() I know what you're thinking: you've seen this macro before. The search is launched as a new tab within the IDE when you press NET macro which searches for the currently highlighted term in Google.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |