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
- Copy the code with the button above.
- Install JustZix (2 minutes) and open the extension on the target page.
- Add a new rule matching that page.
- 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.