Web Search – Visual Studio Plugin for Integrated Search Options in IDE

As a developer we often search some thing in Internet search engines or in favourite blogs. If you are working with Visual Studio then the search might be related to an exception, keyword, referenced items or any text that is in any code file.

I have published a Visual Studio plugin to do the same kind of activity inside the IDE.

Search anything from Visual Studio IDE using Web Search Plugin\Addin

Web Search

The plugin supports below options,

  • 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.
  • 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 here to read more from Visual Studio Gallery. Interested in creating something like this then you might wanted to checkĀ WebSearch on the Code Project

Click here to DownloadVisual Studio Plugin Addin


Very useful and handy String constructor, String(Char, Int32)

String Constructor - strings of repeated charachterWe all work with string values in our daily programming life. Sometimes we might require a string variable to be initialized with strings of a repeated character.

Now let us come to the point.

.NET Framework String class already have a parameterized constructor to do the same.

String Constructor (Char, Int32)

C# Syntax:

public String(
 char c,
 int count

MSDN: “Initializes a new instance of the String class to the value indicated by a specified Unicode character repeated a specified number of times.”

See the sample usage given below,

class Program
	static void Main(string[] args)
		int size = 10;

		string sample = new String('-', size);



		//Outputs : ----------

This is the most straightforward and efficient way to initialize a string variable with strings of repeated characters.