According to Emmet documentation Emmet has three base features:
We all know about the first feature, but I suggest you pay attention to Emmet actions.
Emmet actions may be very useful. For example:
| | | | - | - | | 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). |
| | | | - | - | | Ctrl+Shift+A | Select the content of an element, then the element with tags, then the content of parent element, ect. |
| | | - | | Alt+E, W |
| | | - | | Alt+E, W |
Alt+E, R |
Alt+E, D |
| | | | - | - | | Alt+< | Previous edit point. | | Alt+> | Next edit point. | | | | | Ctrl+Alt+< | Previous item. | | Ctrl+Alt+> | Next item. |
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 |