Home > Development Tools > Sublime > body text

How to install emmet in sublime

下次还敢
Release: 2024-04-03 11:45:20
Original
1101 people have browsed it

How to install Emmet in Sublime

Emmet is a powerful code snippet extension that can greatly improve the efficiency of writing HTML and CSS in Sublime Text. Here's how to install Emmet:

Installing Package Control

Package Control is the package manager for Sublime Text. If you haven't installed it yet, follow these steps:

  1. Press Ctrl Shift P (Windows/Linux) or Cmd Shift P (Mac) Open the command palette.
  2. Enter Install and select Package Control: Install Package.
  3. In the pop-up search box, enter Package Control and press Enter.

Install Emmet

After installing Package Control, you can install Emmet:

  1. Open the command panel (as mentioned above ).
  2. Enter Install and select Package Control: Install Package.
  3. In the search box, enter Emmet and press Enter.

Emmet will be installed automatically.

Configuring Emmet

After installing Emmet, you need to configure some settings to enable it:

  1. OpenPreferences > Settings - User.
  2. Add or update the following settings:
"emmet_syntax_profiles":
{
    "html": "html",
    "css": "css"
}
Copy after login
  1. Save the file and restart Sublime Text.

Using Emmet

Now that Emmet is installed and configured, you can use it to generate code snippets. Here are a few examples:

  • Generate
    elements: Enter div and press Tab.
  • Generate
    elements containing inline elements: Enter div>p and press Tab.
  • Generate
  • elements with multiple classes: Enter li.item1.item2, press Tab.
  • Generate nested
      and
    • lists: Enter ul>li${5} , press Tab.

    For more details and usage examples of Emmet, please see its documentation: https://docs.emmet.io/

    The above is the detailed content of How to install emmet 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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!