Is there a command for formatting HTML in the Atom editor?

前端 未结 6 1964
长情又很酷
长情又很酷 2020-12-22 20:24

I would like to format my HTML with a command, as I do in Visual Studio, using Ctrl+K+D. Is this possible in Atom? If not, are there other

6条回答
  •  攒了一身酷
    2020-12-22 20:52

    Atom does not have a built-in command for formatting html. However, you can install the atom-beautify package to get this behavior.

    1. Press CTRL + SHFT + P to bring up the command palette (CMD + SHFT + P on a Mac).
    2. Type Install Packages to bring up the package manager.
    3. Type beautify into the search box.
    4. Choose atom-beautify or one of the other packages and click Install.
    5. Now you can use the default keybinding for atom-beautify CTRL + ALT + B to beautify your HTML (CTRL + OPTION + B on a Mac).

提交回复
热议问题