vscode-emmet-commands-and-keybindings

Emmet commands and keybindings

According to Emmet documentation Emmet has three base features:

  1. abbreviation expanding
  2. Emmet actions - the commands for advanced editing of HTML code
  3. Emmet snippets

We all know about the first feature, but I suggest you pay attention to Emmet actions.

Emmet actions

Emmet actions may be very useful. For example:

In this extension:

Keybindings

| | | | - | - | | Alt+E, E | Expand abbreviation. | | Ctrl+Shift+A | Balance out. | | Alt+< | Previous edit point. | | Alt+> | Next edit point. | | Ctrl+Alt+< | Previous item. | | Ctrl+Alt+> | Next item. | | Alt+E, D | Delete tag. | | Alt+E, R | Rename tag. | | Alt+E, W | Wrap with abbreviation. | | Alt+E, M | Merge lines. | | Alt+E, = | Evaluate math expression. | | Alt+E, Alt+/ | Toggle comment (to HTML only). |

Notes:

Balance out demo

| | | | - | - | | Ctrl+Shift+A | Select the content of an element, then the element with tags, then the content of parent element, ect. |

Balance out

Wrap with abbreviation demo

Wrap everything together

| | | - | | Alt+E, W |

Wrap

Wrap the every line individually

| | | - | | Alt+E, W |

Wrap

Rename tag demo

 
Alt+E, R

Rename

Delete tag demo

 
Alt+E, D

Rename Rename

Items and edit points demo

| | | | - | - | | Alt+< | Previous edit point. | | Alt+> | Next edit point. | |   | | | Ctrl+Alt+< | Previous item. | | Ctrl+Alt+> | Next item. |

Rename

hr01

Keybinding Command / Title
Alt+E, E editor.emmet.action.expandAbbreviation
Emmet: Expand Abbreviation
   
  editor.emmet.action.matchTag
Emmet: HTML - Go to - Match Tag
Alt+> editor.emmet.action.nextEditPoint
Emmet: HTML - Go to - Next Edit Point
Alt+< editor.emmet.action.prevEditPoint
Emmet: HTML - Go to - Prev Edit Point
   
  editor.emmet.action.balanceIn
Emmet: HTML - Select - Balance In
Ctrl+Shift+A editor.emmet.action.balanceOut
Emmet: HTML - Select - Balance Out
Ctrl+Alt+> editor.emmet.action.selectNextItem
Emmet: HTML - Select - Next Item
Ctrl+Alt+< editor.emmet.action.selectPrevItem
Emmet: HTML - Select - Previous Item
   
Alt+E, D editor.emmet.action.removeTag
Emmet: HTML - Delete Tag
Alt+E, R editor.emmet.action.updateTag
Emmet: HTML - Rename Tag
  editor.emmet.action.splitJoinTag
Emmet: HTML - Split / Join Tag
Alt+E, Alt+/ editor.emmet.action.toggleComment
Emmet: HTML - Toggle Comment
Alt+E, W editor.emmet.action.wrapWithAbbreviation
Emmet: HTML - Wrap With Abbreviation
   
Alt+E, = editor.emmet.action.evaluateMathExpression
Emmet: Evaluate Math Expression
Alt+E, M editor.emmet.action.mergeLines
Emmet: Merge Lines
  editor.emmet.action.reflectCSSValue
Emmet: Reflect CSS Value
  editor.emmet.action.updateImageSize
Emmet: Update ImageSize
   
  editor.emmet.action.incrementNumberByOne
Emmet: Number - Increment - By One
  editor.emmet.action.incrementNumberByOneTenth
Emmet: Number - Increment - By One Tenth
  editor.emmet.action.incrementNumberByTen
Emmet: Number - Increment - By Ten
   
  editor.emmet.action.decrementNumberByOne
Emmet: Number - Decrement - By One
  editor.emmet.action.decrementNumberByOneTenth
Emmet: Number - Decrement - By One Tenth
  editor.emmet.action.decrementNumberByTen
Emmet: Number - Decrement - By Ten