Emmet.net - Emmet for Microsoft Visual Studio
This project is a MS Visual Studio port of Emmet editor extensions created by Sergey Chikuyonok.
More information on the original project is available on Emmet official website.
Precompiled version can be downloaded from VSIX Gallery. Simply install downloaded VSIX package and you are good to go.
Below is the list of actions that are currently implemented in this extension. The rest of them are either natively supported by Visual Studio or exist in either ReSharper or WebEssentials extensions and therefore were not included.
Expand Abbreviation (Ctrl+Shift+Alt+X)
Supported in HTML and CSS-like syntaxes (Razor views, LESS, SCSS). Can be bound to TAB in options.
Wrap with Abbreviation (Shift+Alt+W)
Toggle Comment (Ctrl+Alt+Num /)
Merge Lines (Ctrl+Alt+Shift+M)
Configuration and Extensions
Configuration settings are available under Tools -> Options -> Emmet section. Restart Visual Studio to apply your changes.
Default keyboard shortcuts configuration:
C# mnemonics expansion (experimental, available on Alt+Ins)
Mnemonics are advanced dynamic snippets for C# language that let you quickly generate fields, properties and methods by typing a short abbreviation that defines its accessibility level, return value and other attributes. This implementation is inspired by popular ReSharper extensions ZenSharp and Live Templates.
Mnemonic snippet has the following structure:
<accessibility level><modifiers><return value><member type>.
For example, mnemonic
_rif will generate new private field
private readonly int |. Add
? to the type abbreviation to expand into nullable type.
Visual Studio 2019 and Visual Studio SDK are required to build the project.