如何在 Sublime Text 2 中激活 Zen 编码键绑定?
我刚刚下载了 Sublime Text 2 的 Zen 编码包,但我不知道如何激活它。
我在 Netbeans 中已经有了它,在这里你只需按 CTR+ALT+N,但这在 Sublime 中不起作用编辑。
谷歌没有得到任何结果,所以我在这里问。
有人可以告诉我如何激活 Zen 编码功能吗?
I just downloaded the Zen coding package for Sublime Text 2, but I can't figure out how to activate it.
I already have it in Netbeans, and here you just have to press CTR+ALT+N, but this doesn't work in the Sublime editor.
Google didn't yield any results, so I'm asking here.
Can someone tell me how to activate the Zen coding function?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
我一直在 Windows 上使用 Sublime Text 2 beta,build 2139(但我也很确定这也应该在 Mac OS 和 Linux 上工作),这是我如何让它工作的:
安装 Sublime Text 2 本身后,安装 包控制
适用于 Sublime Text 2。这是一个附加组件,可让您轻松
管理其他附加组件。
我无法使用第一个安装选项,所以我选择了
手动方法。在我的安装中没有名为的文件夹
“已安装的软件包”,而不是我使用的“Pristine Packages”文件夹
其中似乎包含其他已安装的扩展。
重新启动 Sublime Text 2
安装了 Package Control,打开 Sublime Text 2 编辑器并选择 Preferences ->包控制->包控制:从菜单安装包。按“Enter”键,屏幕上应该会显示可供安装的软件包列表。开始输入“Zen”,然后会出现 Zen-Coding。当选择再次点击“Enter”时,屏幕底部的状态栏将显示安装进度。
完成后 - 最后重新启动 Sublime Text 2。现在,您可以使用“ctrl+space”或“tab”展开 Zen-Coding 缩写。
请记住,它仅适用于扩展名为“html”的已保存文件。 (特别是 - 它不适用于您刚刚创建的新文档)。
我希望这有帮助
I have been using Sublime Text 2 beta, build 2139 on Windows (but I'm also pretty sure this should work on Mac OS and Linux too) and here's how I got it to work:
After installing Sublime Text 2 itself, install Package Control
for Sublime Text 2. This is an add-on that allows you to easily
manage another add-ons.
I couldn't get the first installation option to work so I went for
the manual method. On my installation there was no folder called
"Installed packages", instead I've used "Pristine Packages" folder
which seemed to contain other, already installed extensions.
Restart Sublime Text 2
With Package Control installed open Sublime Text 2 editor and choose Preferences -> Package Control -> Package Control : Install Package from the menu. Hit "Enter" and there should be a list of packages available for installation displayed on the screen. Start typing "Zen" and Zen-Coding will be presented. When selected hit "Enter" again, status bar on the bottom of the screen will be showing installation progress.
When it's done - restart Sublime Text 2 one last time. Now, you can expand Zen-Coding abbreviations with 'ctrl+space' or 'tab'.
Remember it will only work in the saved file, with extension "html". (in particular - it won't work on the new document you've just created).
I hope this helps
要扩展您的 zencoding,只需按 TAB。但是,要获取所有键绑定的完整列表,请在 Zencoding 文件夹中查找名为“Default (NAME_OF_YOUR_OPERATING_SYSTEM).sublime-keymaps”的文件。要访问该包,请转至“首选项 > 浏览包 > zencoding”。
To expand your zencoding, just press TAB. However, for a full list of all the keybindings, look in your Zencoding folder for a file called "Default (NAME_OF_YOUR_OPERATING_SYSTEM).sublime-keymaps". To get to the package, go to "Preferences > Browse Packages > zencoding".
Ctrl + Opt(PC 上为 Alt)+ Enter。观看视频。
Ctrl + Opt (Alt on a PC) + Enter. Check out the video.
请参阅这篇文章:Zen 编码下载问题
以及我的评论以获取详细说明。
另外,升级后,只需将文件夹替换为原始文件夹即可
http://dl.dropbox.com/u/1292831/ZenCoding.zip
祝你好运..
See this post : Zen coding downloading trouble
and my comments for detailed instructions.
Also, after an upgrade, just replace the folder with the original one from
http://dl.dropbox.com/u/1292831/ZenCoding.zip
Good Luck ..
下载这个; https://github.com/sergeche/zencoding-sublime
它适用于 SublimeText2 2.0.1 build 2217 窗口。
Download this one; https://github.com/sergeche/zencoding-sublime
It works on SublimeText2 2.0.1 build 2217 windows.
安装 Emmet 包后,记得重启 sublime 编辑器并先保存一个文件来尝试一下!我认为它在安装后不起作用,但它只需要一个保存的文件即可工作。
After install Emmet package, remember to restart sublime editor and save a file first to try it!. I thought it wasn't working after install, but it just needs a saved file to work on it.
按Ctrl+Alt+Enter,屏幕底部会出现一个文本输入框,标题为:
Enter Koan :。当您在框中输入禅宗表达式时,它会同时在屏幕上展开。
或者,您可以在编辑器中键入 zen 表达式,然后按 tab 将其展开。确保不要在表达式内部或之后留下任何空格。
press Ctrl+Alt+Enter and you'll get a text input box at the bottom of the screen, titled:
Enter Koan:
. as you type the zen expression into the box it will simultaneously unfold on the screen.Alternatively, you can type the zen expression in the editor and press tab to expand it. Be sure not to leave any spaces inside the expression or after it.