Home > Development Tools > sublime > How to install emmet plug-in in sublime

How to install emmet plug-in in sublime

下次还敢
Release: 2024-04-03 16:09:20
Original
716 people have browsed it

To install the Emmet plug-in in Sublime Text, please perform the following steps: Open the command palette, enter Package Control: Install Package and press Enter. In the Package Control menu, type emmet and press Enter. Install the Emmet plugin and restart Sublime Text. Enable Emmet and add key bindings: { "keys": ["tab"], "command": "expand_abbreviation" }.

How to install emmet plug-in in sublime

How to install the Emmet plug-in in Sublime Text

Step 1: Open Package Control

  • In Sublime Text, press Ctrl Shift P (Windows) or Cmd Shift P (macOS) opens the command palette.
  • In the command panel, enter Package Control: Install Package and press Enter.

Step 2: Search for the Emmet plugin

  • In the Package Control menu, enter emmet and press Enter.

Step 3: Install Emmet

  • In the search results, select the Emmet plugin and press Enter to install it .

Step 4: Enable Emmet

  • Once Emmet installation is complete, restart Sublime Text.
  • In the menu bar, go to Preferences > Key Bindings - User.
  • In the keybindings file, add the following lines:
<code>{ "keys": ["tab"], "command": "expand_abbreviation" }</code>
Copy after login
  • Save the keybindings file.

Verify installation

To verify that Emmet was successfully installed, try the following steps in Sublime Text:

  • Open An HTML document.
  • Enter the following:
<code class="html">ul>li*5</code>
Copy after login
  • Press the Tab key, Emmet should automatically expand the code snippet to:
<code class="html"><ul>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
  <li></li>
</ul></code>
Copy after login

The above is the detailed content of How to install emmet plug-in in sublime. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template