是否有用于在 Atom 编辑器中格式化 HTML 的命令? [英] Is there a command for formatting HTML in the Atom editor?
本文介绍了是否有用于在 Atom 编辑器中格式化 HTML 的命令?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想用命令格式化我的 HTML,就像我在 Visual Studio 中所做的那样,使用 Ctrl+K+D.这在 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.
- 按 CTRL + SHFT + P 调出命令面板 (CMD + SHFT + P 在 Mac 上).
- 输入 Install Packages 以打开包管理器.
- 在搜索框中输入beautify.
- 选择 atom-beautify 或其他软件包之一,然后点击安装.
- 现在您可以使用 atom-beautify 的默认键绑定 CTRL + ALT + B 来美化您的 HTML (CTRL + OPTION + B 在 Mac 上).
- Press CTRL + SHFT + P to bring up the command palette (CMD + SHFT + P on a Mac).
- Type Install Packages to bring up the package manager.
- Type beautify into the search box.
- Choose atom-beautify or one of the other packages and click Install.
- 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屋!
查看全文