← All examples

JavaScript Navigation vscode.dev

VS Code Web: find-in-files keyboard hint

Shows a once-per-session bubble reminding you of Ctrl+Shift+F for global search (works on github.dev too).

Code to copy

/* Show a one-time hint about Ctrl+Shift+F for find-in-files (works on github.dev too) */
(function () {
  if (sessionStorage.getItem('vsc-find-hint-seen')) return;
  const tip = document.createElement('div');
  tip.textContent = 'Tip: press Ctrl+Shift+F to search across all files';
  Object.assign(tip.style, {
    position: 'fixed', left: '50%', top: '12px', transform: 'translateX(-50%)',
    zIndex: 99999, padding: '8px 14px', background: '#1f2328', color: '#fff',
    borderRadius: '6px', fontFamily: 'system-ui, sans-serif', fontSize: '12px',
    boxShadow: '0 4px 14px rgba(0,0,0,0.3)', cursor: 'pointer'
  });
  tip.addEventListener('click', () => tip.remove());
  document.body.appendChild(tip);
  sessionStorage.setItem('vsc-find-hint-seen', '1');
  setTimeout(() => tip.remove(), 6000);
})();

How to use this example

  1. Copy the code with the button above.
  2. Install JustZix (2 minutes) and open the extension on the target page.
  3. Add a new rule matching that page.
  4. Paste the code into the rule's JavaScript panel and save — it runs on every page visit.

Rate this example

No ratings yet — be the first.

Does this example work?

Snippets are useless without somewhere to paste them.

JustZix takes 2 minutes to install and runs your code on every matching page. No account, no payment.

Download free See use cases