Guest User

Untitled

a guest
May 21st, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. Sub OpenURLInChrome()
  2. 'copy to end of line
  3. DTE.ActiveDocument.Selection.EndOfLine(True)
  4.  
  5. 'set var
  6. Dim url As String = DTE.ActiveDocument.Selection.Text
  7.  
  8. 'launch chrome with url
  9. System.Diagnostics.Process.Start(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + "GoogleChromeApplicationchrome.exe", url)
  10. End Sub
Add Comment
Please, Sign In to add comment