Atom编辑器中是否有用于格式化HTML的命令? [英] Is there a command for formatting HTML in the Atom editor?

查看:149
本文介绍了Atom编辑器中是否有用于格式化HTML的命令?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想像在Visual Studio中一样,使用 Ctrl + K + D 使用命令来格式化HTML.是否可以在 Atom 中使用?如果没有,还有其他选择吗?

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 options?

推荐答案

Atom没有用于格式化html的内置命令.但是,您可以安装 atom-beautify 程序包.

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

  1. CTRL + SHFT + P 调出命令选项板( CMD + SHFT + P (在Mac上).
  2. 键入安装软件包以启动软件包管理器.
  3. 在搜索框中输入美化.
  4. 选择 atom-beautify 或其他软件包之一,然后单击安装.
  5. 现在您可以使用默认键绑定来实现原子美化 CTRL + ALT + B 来美化HTML( CTRL + OPTION + B (在Mac上).
  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).

这篇关于Atom编辑器中是否有用于格式化HTML的命令?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆