Search code examples
visual-studio-codeemmet

Editing Emmet abbreviations in VSCode


In Visual Studio Code, whenever I click "." (dot) and Enter, the editor replaces it with

<div class=""></div>

When Caps Lock is on, it opens the "Emmet: Expand Abbreviation" command. I want to disable both these behaviors: "." should just click "." with nothing else. How can I do this?


Solution

  • I think you are out of luck, I remember this issue:

    https://github.com/microsoft/vscode/issues/87985 (Edit/remove specific emmet abbreviation (dot expands to empty div))

    The issue was closed as designed. You could remove the Enter as an acceptance trigger, via this Setting:

    Editor: Accept Suggestion on Enter // set to never

    so that only Tab would replace with the emmet abbreviation and Enter would insert a newline.