question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Emmet auto completing HTML tags instead of CSS

See original GitHub issue

How can I stop emmet from putting tags into my styled components I have put this into my settings.json

"emmet.includeLanguages": {
        "javascript": "javascriptreact"
    },
  "files.associations": {
      "*.js": "javascriptreact"
  }

2019-09-27_11-05-48

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:22
  • Comments:33

github_iconTop GitHub Comments

8reactions
NayamAmarshecommented, Mar 25, 2021

Here’s a small fix, add this in your settings.json:

"emmet.showSuggestionsAsSnippets": true,
"editor.snippetSuggestions": "bottom",
3reactions
JoshuaCWebDevelopercommented, Jan 6, 2022

After trying all the suggestions in this thread, none of them worked, but I realized that the auto-completion to HTML only happened when the suggestion box was shown (press Esc before Tab and the completion would work fine). Here is the config I needed in order to get Emmet to expand m:10 to margin: 10px; on Tab:

"emmet.triggerExpansionOnTab": true,
"emmet.showExpandedAbbreviation": "never"
Read more comments on GitHub >

github_iconTop Results From Across the Web

Emmet in Visual Studio Code
Emmet is just one of the great web developer features in VS Code. Read on to find out about: HTML - VS Code...
Read more >
Visual Studio Code - Emmet / Intellisense autocomplete ...
I'm just starting out learning html/css in vscode and came across this issue. New HTML doc; Type inp and then press TAB; As...
Read more >
VS Code Autocomplete html tags not working Solution
VS Code Autocomplete html tags not working Solution- Emmet Extinctions Copy the Code, Past and Save: " emmet.triggerExpansionOnTab": true ...
Read more >
Solving Emmet Problem | Tab not AutoComplete html in VSCode
Quick Emmet Shortcuts · Balance Out · What does this syntax using "on:" mean in Ruby on Rails? · How to make your...
Read more >
VS Code Autocomplete html tags not working Solution
In this video I will show you how to enable emmet extentions for autocomplete of html tags.This video is for vs code autocomplete...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found