JS Keyword Suggest is a Visual Studio Code extension that helps developers detect typos in JavaScript keywords, undeclared variables, and provides inline suggestions and strikethrough highlighting for potential errors, improving code quality and reducing bugs.
Features
✅ Detects typos in JavaScript keywords (function, return, console, etc.).
✅ Highlights potential errors in the editor using strikethrough red decoration.
✅ Suggests the closest correct keyword using Levenshtein distance.
✅ Tracks the last 10 recently typed words for real-time suggestions.
✅ Provides inline CodeLens suggestions to quickly replace typos.
✅ Automatically refreshes diagnostics when opening a file, typing, or fixing a typo.
✅ Compatible with plain JavaScript files (.js) and ES modules (type: module).
✅ Can be combined with ESLint or TypeScript for enhanced undeclared variable detection.
Installation
Install from VSCode Marketplace (or run from VSIX locally).
Open a JavaScript file in VSCode.
Make sure "checkJs": true in your jsconfig.json for stricter checking (optional but recommended).