Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Context-Aware Suggestions (JSX/HTML)New to Visual Studio Code? Get it now.
Context-Aware Suggestions (JSX/HTML)

Context-Aware Suggestions (JSX/HTML)

c75

|
3 installs
| (0) | Free
Context-aware suggestion control for JSX and HTML
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Context-Aware Suggestions (JSX/HTML)

Disable code suggestions only when your cursor is inside JSX or HTML/XML text nodes while keeping completions for code, props, and expressions. Emmet stays intact.

What it does

  • Hides autocompletion when the caret is inside plain text of JSX/HTML elements (e.g., <div>|text</div>).
  • Keeps suggestions for code, props/attributes, expressions, and Emmet.
  • Works in React files (typescriptreact, javascriptreact, .ts/.js with JSX) and markup files (html, xml, xhtml, svg).

Usage

Install and start typing in JSX. Completions disappear only inside plain text of JSX elements; everywhere else they behave normally.

Recommended settings for Emmet

Add this to your settings to expand Emmet on Tab inside TSX/JSX:

{
  "emmet.triggerExpansionOnTab": true,
  "emmet.includeLanguages": {
    "javascript": "javascriptreact",
    "typescript": "typescriptreact"
  }
}
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft