Web Spell & Grammar Check
Intelligent spelling and grammar checking for web projects — right inside VS Code!
This extension uses LanguageTool to smartly check only natural language text in your files:
- HTML: text outside
<script> and <style> tags
- JavaScript / TypeScript / PHP: comments and string literals
- Markdown, plain text, and more
It underlines misspellings in red and grammar/style issues in yellow, shows beautiful hover tooltips with suggestions, and provides one-click Quick Fixes.
Perfect for web developers, technical writers, bloggers, and anyone who wants clean, professional text in their code.
Features
- Smart text detection — ignores code, only checks human-readable content
- Red underline + light background for spelling errors
- Yellow underline + light background for grammar/style issues
- Grammarly-style hover tooltips with detailed message and suggestions
- Quick Fix (Ctrl + .) to replace with suggested word
- Error count badges on files in Explorer and editor tabs (e.g.,
index.html 7)
- Status bar counter showing total issues
- Auto-check on save (configurable)
- Full support for HTML, JS/TS, PHP, Markdown, and plain text
Installation
- Open VS Code
- Go to Extensions (Ctrl+Shift+X)
- Search for "Web Spell & Grammar Check"
- Click Install
Or install directly from the Marketplace:
https://marketplace.visualstudio.com/items?itemName=MoonGulzar.web-spell-grammar-check
How to Use
- Open any supported file (HTML, JS, PHP, Markdown, etc.)
- The extension can auto-check on save (enabled by default)
- Or manually run:
Ctrl+Shift+P → type "Check Spelling & Grammar" → press Enter
- Hover over underlined words for explanation + suggestions
- Use Ctrl + . (Quick Fix) to apply corrections
- View all issues in the Problems panel (Ctrl+Shift+M)
- See issue count badges on files in Explorer
Settings
webSpellGrammarCheck.endpoint — LanguageTool server (default: public API)
webSpellGrammarCheck.language — Language code (e.g., en-US, en-GB, fr, de-DE)
webSpellGrammarCheck.autoCheckOnSave — Run automatically on save (recommended)
Tip: For best experience, keep "Problems > Decorations: Enabled" turned on in VS Code settings and also select "Errors" from the following dropdown. (this extension enables it by default).
Privacy
Only extracted natural language text is sent to the configured LanguageTool server.
No code or sensitive data is transmitted.
For maximum privacy and unlimited checks, run your own LanguageTool server and set the endpoint.
Tips:
For best experience, keep "Problems > Decorations: Enabled" turned on in VS Code settings (it's enabled by default with this extension).
Also select "Error" from the following dropdown, by default it would be "Information".
Author
Moon Gulzar
Full-Stack Developer | VS Code Extension Creator
Author of the popular Web Project Manager extension
If this extension saves you from one embarrassing typo in production — please star this repo and consider sponsoring to support future development ❤️

Made with ❤️ by Moon Gulzar — helping developers write better code, one word at a time.