Searching the web from n2

You can add a tool that launches a web search on the currently selected word.  This can be useful to quickly lookup documentation for functions that you use in your code.

To add the custom tool, follow these steps:

  1. Click on Tools->Customize->Add
  2. Enter the following information:
    1. Title: &Help
    2. Command: c:\program files\Internet Explorer\iexplore http://bing.com/results.aspx?q=%SEL%&mkt=en-us&FORM=LVCP
    3. Hot Key: F1 (click in the field and press F1)

You can now select a word while in n2 and press F1 to launch Internet Explorer on the selection.  If the selection is empty, n2 will automatically use the word under the insertion point.

You can modify the URL from step 2.2 to specify a specific site or additional restrictions.  For example using the following: c:\program files\Internet Explorer\iexplore http://bing.com/results.aspx?q=%SEL%%20(Windows)&mkt=en-us&FORM=LVCP will append “(Windows)” to your search string.

Needless to say, you can customize the commands to use your favorite browser and search engine.