Add a tool to Visual Studio that opens a web site or sends email

There are many web sites that you may find useful while building applications. You may also want to send email to an instructor, me (Rod Stephens), other project members, and others. This example shows how to make tools to launch these processes from the Visual Studio IDE.

To make a tool that opens a web page, follow these steps:

  1. Open the Tools menu and select External Tools.
  2. Click Add.
  3. Give the new tool the title C# Helper.
  4. Set the tool's Command to the location of your browser's executable. To find the browser's location:
    1. Right-click an icon that launches the browser and select Properties.
    2. Copy and paste the Target. This might be "C:\Program Files\Internet Explorer\iexplore.exe" or "C:\Program Files\Mozilla Firefox\firefox.exe."
  5. Set the tool's Arguments to www.CSharpHelper.com.
  6. Click OK.
The tool will appear in the Tools menu in the section above the External Tools entry. When you select that menu item, Visual Studio will launch your browser and display the web page.

To launch an email, follow the previous steps but change the URL in the tool's Arguments property to something like mailto:RodStephens@CSharpHelper.com.

 

What did you think of this article?




Trackbacks
  • No trackbacks exist for this post.
Comments
  • No comments exist for this post.
Leave a comment

Submitted comments are subject to moderation before being displayed.

 Name

 Email (will not be published)

 Website

Your comment is 0 characters limited to 3000 characters.