Hà Mã Tím's home

← Back

How to Search Selected Text in Chrome Without Copying It

The routine is so automatic you stop noticing it: highlight an error message, press Ctrl+C, open a new tab, click the address bar, press Ctrl+V, press Enter. Four keystrokes and two tab switches to answer one question. Do it fifty times a day and the copy-paste-switch loop is half your browsing time. You do not need any of it — Chrome can search selected text directly, and once it does, the copy step disappears from your muscle memory within a day.

Why Chrome's default right-click search is not enough

Chrome does have "Search Google for ..." in the context menu. It handles one case: Google, in the default search engine, in the same tab. Everything else stays manual:

  • You want to search the selected error text on Stack Overflow, not Google.
  • You want a dictionary, a translation, a documentation site, or your own company wiki.
  • You are translating a sentence, or looking a package name up on npm.
  • You want the result in a new tab so you can keep reading the page you are on.

Add a second search engine manually through Chrome settings and Chrome asks you for a keyword you have to type in the address bar before the query. So the flow becomes: highlight, copy, open new tab, type the keyword, paste, Enter. More steps, not fewer.

That is the gap a quick search context menu extension fills.

The right-click search workflow, step by step

With Quick Search installed:

  1. Highlight any text on any page — an error, a word, a product name, a line of code.
  2. Right-click and open the Quick Search menu.
  3. Pick the search engine from the list.
  4. The query opens in a new tab, already executed.

The menu itself only appears when text is selected, so it does not clutter the right-click menu on a normal page. You keep the original tab exactly as it was, which matters far more than it sounds: the page you were reading is where you come back to, and you never lost it.

Build the exact list of search engines you actually use

The point is not "more search engines". The point is that your list matches your work, and every entry is one right-click away. Add, edit or delete entries freely; each one is just a name and a URL template with a keyword placeholder, so anything with a query string can become a search target. In practice, a list that earns its place looks something like this:

  • Stack Overflow for error messages and library exceptions.
  • MDN for a CSS property or a DOM method you half remember.
  • Translate for a sentence in a language you do not read.
  • Your own site or wiki for internal docs that Google never indexes.
  • A specific shop, docs site, or changelog that you check several times a week.
  • A second search engine for the queries Google is bad at.

Two rules of thumb when building the list. First, name entries the way you think, not the way the site is branded — "Error → Stack Overflow" is easier to hit under pressure than a long brand name. Second, keep it to the searches you genuinely repeat; a fourteen-entry menu is slower to use than a five-entry one.

Long-tail queries are exactly where this pays off

Short queries are easy to retype. The expensive ones are long: a full Java exception plus its stack line, a quoted phrase you want to find verbatim, a paragraph in another language, a UUID or a hash. Selecting and searching is a single gesture, while copying those is where mistakes happen — one missing character and the search returns nothing.

There is also a version of this that is about reading, not searching. Highlighting a sentence and sending it to a translation or explanation page is the same gesture, and it is the reason a custom search list is more useful than it first appears.

Keep the setup portable

Search engine definitions are configuration, and configuration gets lost on a new laptop or after a profile cleanup. Export the list to a JSON file and import it anywhere. Everything is stored with the Chrome Storage API on your machine, so the list is local to the browser you configured — which is also why the export matters: the JSON file is the only copy that travels.

Honest limits

  • The extension runs the search you define. If a site has no query-string search (some internal tools post a form instead), it cannot be a search target.
  • The menu adds a step when the site already provides its own context action; some sites add their own "search this" items, and then you have both. In those cases the built-in one is usually the better choice.
  • Everything happens in a new tab. If you would rather stay in place, use Chrome's built-in Google search instead.

For everyone else, install Quick Search from the Chrome Web Store, spend two minutes adding the three or four engines you use every day, and see how quickly the copy-paste loop stops feeling normal. If the tab you were reading is the thing you keep losing, Tabs Workspace solves the other half of the problem.