Smart Keyword Suggest is a Visual Studio Code extension that detects typos in language keywords and variable names for JavaScript, TypeScript, Python, and Java. It provides inline suggestions, strikethrough highlighting, and quick fixes to improve code quality and reduce bugs.
Features
✅ Supports JavaScript, TypeScript, Python, and Java.
✅ Detects typos in keywords and variables.
✅ Highlights errors with red strikethrough decorations.
✅ Suggests nearest correct keywords or symbols using Levenshtein distance.
✅ Tracks in-scope variables and symbols for accurate suggestions.
✅ Provides inline CodeLens suggestions to quickly replace typos.
✅ Commands:
Fix Typo – Instantly replace a typo.
Refresh Suggestions – Refresh CodeLens and diagnostics manually.
✅ Keyboard shortcuts:
Ctrl+Alt+F → Fix typo.
Ctrl+Alt+R → Refresh suggestions.
✅ Debounced updates for fast perceived response.
✅ Symbol caching for performance in large files.
Installation
Install from VSCode Marketplace or load the extension from VSIX.
Open a supported language file mentioned in features
Ensure TypeScript checking (checkJs) is enabled for JavaScript/TypeScript for undeclared variable detection (optional).