Automatically fixes misspelled keywords, symbols, and identifiers in JavaScript, TypeScript, Python, Java, JSX, and TSX. Instant inline hints, auto-suggestions, and quick fixes to speed up your coding.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
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, Java, JSX, and TSX.
✅ 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.
✅ Per-range suggestions: Same word at different positions gets different suggestions based on local scope.
✅ Diagnostic-first suggestions: TS/ESLint suggestions appear first, followed by extension suggestions.
✅ Max 3 suggestions per range to keep CodeLens clean and focused.
✅ 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.
✅ Centralized logging with [smart-keyword-suggest] prefix for easy filtering.
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).