Entries:
Comments:
Posts:

Loading User Information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading User Information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements

Visual Studio Bing... The WebSearch Extension for Visual Studio

Well I just couldn't avoid it... I know I said last week that I was going to take a little break from blogging about Visual Studio extensions. And I did. One post counts as a "little" break, right?

All this means that today, I've got another Visual Studio extensions for you. While that's cool and all, I think the best part of this project is that the author doesn't just provide you're the extension, and the source, but also take the time to teach YOU how to create one yourself! He walks you through the process of creating your own Extension.

Who's that? Shemeer NS, of Shemeer's World of Programming.

WebSearch

Search (Google, Yahoo, MSDN, Code Project, Stack Overflow and more…) for the selected text/item. Supports most of the Visual Studio Versions.

Intro4_1[2]

  • Multiple search options included in all Text Editor, Reference Items, Error List. (Integrated search options for Visual Studio IDE)
  • Currently this Add-in works fine with Visual Studio 2005, 2008, 2010, 2012, 2013.
  • You can customize web-search by configure option.
  • Open Search in Default Web Browser or Visual Studio Tab or any other installed browser.
  • Change WebSearch context menu position
  • Easy access with Shortcut key. I use Alt+F1.
  • WebSearch context menu availabe in all most all editor files.
  • WebSearch menu also availabe in Tools menu with default search option.
  • Configurable shortcut key.
  • WebSearch menu in Tools menu
  • WebSearch context menu in all Text Editor, Reference Items, Error List.

[Click through for the rest...]

Web Search - Visual Studio Add-in , Search (Google, Yahoo, MSDN, Code Project, Stack Overflow and more...) for the selected text/item.

Visual Studio provides one of the most powerful IDEs on the market. And it also allows us to extend the functionalities too. Visual Studio Add-ins are powerful way to do this.

In this article I’m going to create a Visual Studio Add-in named “Web Search”. Using this Add-in we can easily search online for a selected text from the editor window or an item from the error list/ reference folder. Multiple search engine options are available with this Add-in.

...

Background

How many times have you copied something from the Visual Studio environment and searched for that? It can be anything, like a simple keyword or an error item. As a developer I used to do this most of the time Smile | <img src= . Whenever I get a doubt on something, I used to search for that online to know more.

When we look into the ‘Reference’ folder of a complex application we may find some unfamiliar reference items added, at this time we used to search for that online for a better understanding.

While doing development we used to get some compile time error. If it’s not known for us then the next step will be Google it.

This Add-in is created to increase our productivity by adding the search option to the VS IDE and Currently this AddIn setup supports Visual Studio 2005, 2008, 2010, 2012.

Steps for Creating WebSearch Add-In

Here I will explain step by step to create the WebSearch Visual Studio Add-in. The steps given are based on Visual Studio 2010 IDE and .NET Framework 4.0.

Code explanation is given at the end of this article.

Step 1. Create a new Visual Studio Add-in named “WebSearch2010”,

...

Step 19. Now the WebSearch Add-in is completed and ready to test.

Step 20. Create a Deployment and Setup and then it’s ready for distributing to the developer community.

If required I will be posting an article later, on Setup and Deployment of Visual Studio Add-In.

How the code works.

OnConnection ...
CreateContextMenu Method ...
AddWebSearch Method ...
oControl_Click ...
getSelectedText ...

AddIn file ...

Using the attached files

Working codes are attached with this article, if you want you can alter the code as per your needs. The Installer can be used to install this Add-In to your local box.

...

Using the attached files

Working codes are attached with this article, if you want you can alter the code as per your needs. The Installer can be used to install this Add-In to your local box.

image

Add-In Action

image

image

...

Troubleshooting

Checkout my article on Troubleshooting Visual Studio Add-ins, Error Numbers and it's possible solutions

...

In this article I have tried to explain How to create a Visual Studio Add-in named WebSearch with detailed steps, I hope you have enjoyed this article and got some value addition to your knowledge.

I have put my time and efforts on all of my articles, please don't forget to mark your votes, suggestions and feedback to improve the quality of this and upcoming articles.

[Make sure you click through to read the whole thing, vote and more]

Now you are all set. You have a cool extension, you have the source and you have the knowledge to get started building your own. Go forth and build my friends, build, Build,, BUILD!

Tags:

Follow the Discussion

Remove this comment

Remove this thread

close

Comments Closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.