Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>vscode-websearchNew to Visual Studio Code? Get it now.
vscode-websearch

vscode-websearch

ettoreciprian

|
887 installs
| (1) | Free
Open Github, Stackoverflow or Google and search the web with your selected text
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vscode-websearch

Icon

Build Status

A simple web search command that opens a page in your default browser based on your search configurations, from selected text in the editor or an input box.

Features

  • Search github, google or stackoverflow with the editor selected text.
  • Configure a search provider with default advanced parameters.
  • Open an input box when no text is selected.

Commands

The default commands available with keybindgs

{
    "command": "websearch.github",
    "key": "ctrl+alt+H"
},
{
    "command": "websearch.stackoverflow",
     "key": "ctrl+alt+O"
},
{
    "command": "websearch.google",
    "key": "ctrl+alt+G"
}

Extension Settings

This extension contributes the following settings:

websearch.searchProvider | object | Search providers definition. You can chose here to customize the default search parameter which will be used when running the relative command. The default values are:

{
    "name": "github",
    "baseUrl": "https://github.com/search",
    "defaultQuery": {},
    "defaultParams": {
        "type": "code"
    }
},
{
    "name": "stackoverflow",
    "baseUrl": "https://stackoverflow.com/search",
    "defaultQuery": {
        "is": "answer"
    },
    "defaultParams": {}
},
{
    "name": "google",
    "baseUrl": "https://www.google.com/search",
    "defaultQuery": {},
    "defaultParams": {}
}

websearch.activateInputBox | boolean | Enables an input box if no selected text or active editor is present. Default is true.

Contribute

In case you want to extend the possible search or simply bug fix. Follow this to start developing for vscode.

  1. Use npm install to install the required developer dependencies. This project uses Typescript with default tslint.
  2. Extend the class src/search/WebSearchProvider if you think it is necessary with your own url builder logic.
  3. Add the command to package json configuration for websearch.searchproviders and in the
  4. Send me a PR ;)

Release Notes

See changelog

MIT © Ettore Ciprian

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft