Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Smart Keyword SuggestNew to Visual Studio Code? Get it now.
Smart Keyword Suggest

Smart Keyword Suggest

Amiya

|
3 installs
| (0) | Free
Instantly suggests correct keywords or symbols for misspelled terms in JavaScript, TypeScript, Python, and Java — with inline hints and quick fixes.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Smart Keyword Suggest v0.2.0

VSCode JavaScript TypeScript Python Java

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

  1. Install from VSCode Marketplace or load the extension from VSIX.
  2. Open a supported language file mentioned in features
  3. Ensure TypeScript checking (checkJs) is enabled for JavaScript/TypeScript for undeclared variable detection (optional).
{
  "compilerOptions": {
    "checkJs": true,
    "noEmit": true,
    "target": "ES2020"
  },
  "include": ["**/*.js", "**/*.ts"]
}

Usage

  1. Typo Detection:

    • Misspelled keywords or undeclared variables are automatically highlighted with red strikethrough.
    • Hover or click CodeLens to see replacement suggestions.
  2. Fixing Typos:

    • Click a CodeLens suggestion to replace the typo.
    • Strikethrough decoration and CodeLens update immediately.
  3. Manual Refresh:

    • Run Refresh Keyword Suggestions from the Command Palette or press Ctrl+Alt+R to manually refresh suggestions and decorations.

Configuration

No extra configuration is needed. Optional:

  • Add custom keywords to the keywords array in the extension source.
  • Adjust debounce delay for perceived speed in extension.ts.

Example

functon greet(name) {
  consol.log("Hello " + name); // ❌ 'functon' and 'consol' highlighted
}
  • Suggestions:

    • Replace 'functon' → 'function'.
    • Replace 'consol' → 'console'.

Tech Stack

  • VSCode Extension API
  • TypeScript & JavaScript
  • Levenshtein distance (fast-levenshtein)
  • Regex & CodeLens for inline suggestions
  • Symbol caching and debounced updates for performance

Known Limitations

  • Best used with plain files and modern language modules.
  • Undeclared variable detection depends on TypeScript or ESLint configuration.
  • Cross-file variable tracking is not yet supported.
  • Scoped variable name recommendation is yet to come.

Contributing

  1. Mail at amiyamaity7105@gmail.com for collaboration or feedback.
  2. Make changes locally or request features.
  3. Submit feedback or updated version for review.
  4. Send back your improved version for review. If your changes help others — I’ll publish them to the Marketplace with proper credits 🏅

License

MIT License © 2025

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft