Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

VS Code includes Emmet, so you do not need an extension to expand abbreviations. By default, type an abbreviation in a supported file and choose its expansion from the suggestion list. Tab does not expand Emmet by default: enable emmet.triggerExpansionOnTab if you want that behavior, or run Emmet: Expand Abbreviation from the Command Palette.

VS Code Emmet shortcuts at a glance

What you want to do How When it helps
Choose an Emmet expansion Type an abbreviation in a supported language, then select the expansion in the suggestion list. The default workflow.
Show suggestions manually Press Ctrl+Space on Windows or Linux, or Control+Space on macOS. When quick suggestions are disabled or you want to open the list on demand.
Expand with Tab Set "emmet.triggerExpansionOnTab": true. If you prefer Tab as your expansion key. Tab still indents when there is no abbreviation to expand.
Run the expansion command Open the Command Palette and choose Emmet: Expand Abbreviation. Useful when you do not want to select from suggestions.
Use a dedicated keybinding Assign a shortcut to editor.emmet.action.expandAbbreviation in Keyboard Shortcuts. If you want a repeatable key of your choice.

How to expand an Emmet abbreviation

  1. Open a file whose language mode supports Emmet, such as HTML or CSS.
  2. Type an Emmet abbreviation where you want the generated markup or stylesheet code.
  3. Select the desired Emmet expansion from the suggestion list.

Emmet expansions appear in VS Code’s completion list. If the list is not visible, press Ctrl+Space on Windows or Linux, or Control+Space on macOS. VS Code’s Emmet documentation covers the built-in support and its settings.

Make Tab expand Emmet

Tab expansion is optional. To enable it, add this setting to your user or workspace settings:

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
{
  "emmet.triggerExpansionOnTab": true
}

With the setting enabled, Tab expands an abbreviation when VS Code can identify one; otherwise, it remains available for indentation. This is particularly useful for standalone custom tags, which VS Code does not normally offer as Emmet suggestions because treating every word as a possible tag would create noisy completions.

#1 Best Overall
Sale
Amazon Basics Wired QWERTY Keyboard, Works with Windows, Plug and Play, Easy to Use with Media Control, Full-Sized, Black
  • KEYBOARD: The keyboard works for Windows with hot keys that enable easy access to Media, My Computer, Mute, Volume up/down, and Calculator
  • EASY SETUP: Experience simple installation with the USB wired connection
  • VERSATILE COMPATIBILITY: This keyboard is designed to work with multiple Windows versions, including Vista, 7, 8, 10 offering broad compatibility across devices.
  • SLEEK DESIGN: The elegant black color of the wired keyboard complements your tech and decor, adding a stylish and cohesive look to any setup without sacrificing function.
  • FULL-SIZED CONVENIENCE: The standard QWERTY layout of this keyboard set offers a familiar typing experience, ideal for both professional tasks and personal use.

Tab is not a universal default for Emmet. In a 2017 post, VS Code team member Ramya Rao explained the historical decision to remove the default Tab binding: the suggestion list offered a more pleasant way to access Emmet expansions. That rationale is historical context; your current behavior depends on your settings and bindings. The VS Code announcement describes the Emmet 2.0 change.

Run or bind “Emmet: Expand Abbreviation”

Run it from the Command Palette

  1. Open the Command Palette.
  2. Search for and select Emmet: Expand Abbreviation.

The command ID is editor.emmet.action.expandAbbreviation.

Rank #2
Sale
Logitech MK270 Full Size Wireless Keyboard and Mouse Combo - Black
  • Reliable Plug and Play: The USB receiver provides a reliable wireless connection up to 33 ft (1), so you can forget about drop-outs and delays and you can take it wherever you use your computer
  • Type in Comfort: The design of this keyboard creates a comfortable typing experience thanks to the low-profile, quiet keys and standard layout with full-size F-keys, number pad, and arrow keys
  • Durable and Resilient: This full-size wireless keyboard features a spill-resistant design (2), durable keys and sturdy tilt legs with adjustable height
  • Long Battery Life: MK270 combo features a 36-month keyboard and 12-month mouse battery life (3), along with on/off switches allowing you to go months without the hassle of changing batteries
  • Easy to Use: This wireless keyboard and mouse combo features 8 multimedia hotkeys for instant access to the Internet, email, play/pause, and volume so you can easily check out your favorite sites

Assign your own shortcut

  1. Open Keyboard Shortcuts with Preferences: Open Keyboard Shortcuts. The default shortcut is Ctrl+K, then Ctrl+S on Windows and Linux; on macOS, it is Command+K, then Command+S.
  2. Search for Emmet: Expand Abbreviation.
  3. Edit its keybinding and press the key combination you want to use.

Bindings can vary by platform, keyboard layout, and personal configuration. Check the shortcut displayed in your own Keyboard Shortcuts editor rather than assuming a universal Emmet key. The VS Code keybindings guide explains how to change, remove, and reset bindings.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Which Emmet workflow should you use?

Workflow Best for Trade-off
Choose from suggestions Seeing available expansions and using Emmet without changing settings. You must select the desired completion; the list may not appear automatically if quick suggestions are off.
Tab expansion Expanding abbreviations with a familiar, quick key. Requires enabling the setting, and Tab’s role depends on whether VS Code recognizes an abbreviation at the cursor.
Command or custom keybinding Invoking expansion on demand or assigning a dedicated key. The command is less immediate than picking a visible suggestion; a custom binding takes setup and may differ across systems.

Supported languages and settings

Emmet abbreviation and snippet expansion is enabled by default in html, haml, pug, slim, jsx, xml, xsl, css, scss, sass, less, and stylus, as well as languages that inherit from those modes, including Handlebars and PHP.

Rank #3
Sale
Logitech K120 Full Size Wired Keyboard USB Plug-and-Play Windows - Black
  • All-day Comfort: The design of this standard keyboard creates a comfortable typing experience thanks to the deep-profile keys and full-size standard layout with F-keys and number pad
  • Easy to Set-up and Use: Set-up couldn't be easier, you simply plug in this corded keyboard via USB on your desktop or laptop and start using right away without any software installation
  • Compatibility: This full-size keyboard is compatible with Windows 7, 8, 10 or later, plus it's a reliable and durable partner for your desk at home, or at work
  • Spill-proof: This durable keyboard features a spill-resistant design (1), anti-fade keys and sturdy tilt legs with adjustable height, meaning this keyboard is built to last
  • Plastic parts in K120 include 51% certified post-consumer recycled plastic*

Enable Emmet in another language

Use emmet.includeLanguages to map the language ID VS Code uses to a language Emmet supports. For example, the documentation shows mappings from javascript to javascriptreact, razor to html, and plaintext to pug:

{
  "emmet.includeLanguages": {
    "javascript": "javascriptreact",
    "razor": "html",
    "plaintext": "pug"
  }
}

Use the actual language identifiers, not display names. Mapping a general-purpose language can surface markup-oriented completions in contexts where they are distracting.

Rank #4
Sale
Redragon K521 Upgrade Rainbow LED Gaming Keyboard, 104 Keys Wired Mechanical Feeling Keyboard with Multimedia Keys, One-Touch Backlit, Anti-Ghosting, Compatible with PC, Mac, PS4/5, Xbox
  • 【Dreamy Rainbow Gaming Keyboard】K521 Gaming Keyboard Adopts a Different LED Backlight Design, Upgraded on the Traditional LED Backlight Effect, Making the Light More Penetrating, Giving You a More Dazzling Visual Effect, Making Your Gaming Process More Enjoyable
  • 【One Touch Opens & Visual Feast】The K521 Red Dragon Keyboard has a One-Touch on/off Lighting Button for Added Convenience. It also has a Three-Position Adjustable Breathing Mode and a Four-Position Adjustable Brightness Lighting Mode
  • 【Mechanical Feeling & Fast Tapping】The PC Keyboard Keys are Designed for Mechanical Feeling, Giving You a Better Feel During Use and the Ability to Trigger Keys Quickly, Allowing You to Win All Your Games
  • 【19 Keys Anti-Ghosting Keyboard】Anti-Ghosting Ensures Every Button Can Be Triggered. This Allows You to Trigger Key Combinations In The Game Accurately, And Each Skill Can Be Accurately Released to Increase Your Winning Rate. Redragon K521 Will Be Your Perfect Partner
  • 【12 Multimedia Combination Keys】The K521 Wired Gaming Keyboard is Equipped with 12 Multimedia Keys That Can Greatly Enhance Your Gaming/Office Efficiency and Make It More Convenient to Use

Control where expansions appear

emmet.showExpandedAbbreviation controls whether expanded abbreviations appear in suggestions. Set it to never to hide them. Set it to inMarkupAndStylesheetFilesOnly to limit visibility to markup and stylesheet files when Emmet is mapped into other languages. The always option includes mapped modes but is not context-aware.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Change suggestion ordering

If you want Emmet suggestions grouped with snippets and near the top, set emmet.showSuggestionsAsSnippets to true and editor.snippetSuggestions to top. These settings affect ordering, not whether Emmet can expand abbreviations.

Best Value
Sale
Logitech K270 Full Size Wireless Keyboard for Windows - Black
  • All-day Comfort: This USB keyboard creates a comfortable and familiar typing experience thanks to the deep-profile keys and standard full-size layout with all F-keys, number pad and arrow keys
  • Built to Last: The spill-proof (2) design and durable print characters keep you on track for years to come despite any on-the-job mishaps; it’s a reliable partner for your desk at home, or at work
  • Long-lasting Battery Life: A 24-month battery life (4) means you can go for 2 years without the hassle of changing batteries of your wireless full-size keyboard
  • Simply plug the USB receiver into a USB port on your desktop, laptop or netbook computer and start using the keyboard right away without any software installation
  • Simply Wireless: Forget about drop-outs and delays thanks to a strong, reliable wireless connection with up to 33 ft range (5); K270 is compatible with Windows 7, 8, 10 or later
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Troubleshoot Emmet expansions

No Emmet suggestion appears

  • Check whether editor.quickSuggestions is disabled. If so, request the list with Ctrl+Space on Windows or Linux, or Control+Space on macOS.
  • Check whether emmet.showExpandedAbbreviation is set to never.
  • Confirm that the current language is supported or configured through emmet.includeLanguages.

A custom tag does not appear as a suggestion

Standalone custom tags are omitted from suggestions to avoid offering every typed word as a possible tag. Enabling Tab expansion with emmet.triggerExpansionOnTab is a documented workaround.

A custom snippet no longer expands

Check emmet.extensionsPath and the format of snippets.json. For cursor positions, the current format uses TextMate tab stops such as ${1} or ${1:placeholder}; the older | and ${cursor} markers are no longer supported.

A snippet ending in a plus sign fails

Emmet 2.0 does not support certain HTML snippets that end in +, including select+ and ul+. For that scenario, create a custom snippet instead.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Other useful Emmet actions

VS Code supports most Emmet actions with multiple cursors. Emmet also includes filters useful beyond ordinary abbreviation expansion: |bem applies BEM-style class naming, |c adds comments around important tags by default, and the trim filter removes line markers when using Wrap with Abbreviation.

Quick Recap

SaleBestseller No. 1
SaleBestseller No. 3
Logitech K120 Full Size Wired Keyboard USB Plug-and-Play Windows - Black
Logitech K120 Full Size Wired Keyboard USB Plug-and-Play Windows - Black
Plastic parts in K120 include 51% certified post-consumer recycled plastic*; Product carbon footprint: 4.02 kg CO2e
$12.39
SaleBestseller No. 5
Logitech K270 Full Size Wireless Keyboard for Windows - Black
Logitech K270 Full Size Wireless Keyboard for Windows - Black
Plastic parts in K270 include 38% certified post-consumer recycled plastic; Eight hot keys: For instant access to the Internet, e-mail, music volume and more
$21.48

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.