具有文本片段支持的编辑器?
我知道 etexteditor 和 vim/emacs。
是否有任何其他 Windows 编辑器具有类似文本的片段支持(例如,您编写触发词,按 Tab,它会更改为某些内容,您再次按 Tab,它会更改为第一站,然后您可以在那里输入一些内容,它会根据定义的代码片段在其他几个地方进行更改)? 我知道这有点奇怪,但你可能明白我的意思。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(9)
你可以使用 snipMate vim 插件 - 我使用它并且它效果很好
You can use the snipMate plugin for vim - I use it and it works great
InType 可能“有一天”成为您正在寻找的东西,至少 alpha 是有希望的。 遗憾的是,InType 的发布版本还远没有准备好(请参阅博客和论坛)。
更新:目前,我正在使用 Sublime Text,另一个很棒的编辑器:完全Python 脚本和片段支持。
InType could "someday" become what you're looking for, at least the alphas are promising. Sadly, a release version of InType is still far from being ready (see blog and forums).
Update: Currently, I'm using Sublime Text, another great editor: fully Python-scriptable and snippets support.
Redcar,用 Ruby 编写,刚刚发布,但无论如何还没有完善。
除此之外,我什么也不知道。
Redcar, written in Ruby, was just released, but it's not polished by any means.
Apart from that, I don't know of any.
如果您使用 jEdit 将会执行类似的操作/plugins/?SuperAbbrevs" rel="nofollow noreferrer">SuperAbbrevs 插件。
jEdit will do something similar if you use the SuperAbbrevs plugin.
Visual Studio 可以做到这一点,但它远不如 textmate / e 好。
Visual Studio will do this, but it's nowhere near as nice as textmate / e.
我不使用 Windows,但在寻找 Linux 的替代品时,我遇到了 e-texteditor。
I don't use windows but whilst searching for a alternative for linux I came across e-texteditor.
您可以考虑使用独立于 IDE 的应用程序来扩展代码片段。
我有一个 lorem ipsum 片段; 其中包含我的 URL、我的电子邮件等,但您也可以制作包含代码的片段。
应用程序:Textexpander Mac、Mac 版 Typinator、Texter for Windows(没有上一个体验,所以不知道是否这很好)
You can look into using an application independent of your IDE, to expand snippets.
I have a lorem ipsum snippet; one that contains my URL, my email, and so on, but you could also make snippets that contain code.
Applications: Textexpander for Mac, Typinator for Mac, Texter for Windows (no experience with the last one, so don't know if it's any good)
Komodo Edit 和 Komodo IDE 都支持这一点,尽管 TextMate 在这方面可以说更加精致和完善。 然而,Komodo Edit 是免费的,与 Windows 上的 InType 和 E 等软件相比,它的优势非常明显。
http://www.openkomodo.com/
Komodo Edit and Komodo IDE both support this, although TextMate is arguably a bit more refined and polished in this area. Komodo Edit is free, however, and compares very favorably against the likes of InType and E for Windows.
http://www.openkomodo.com/
自 Update 2 RC 起的 Visual Studio 2015
https://t.co/kmG52wkOXe
Visual Studio 代码
http://blogs.msdn.com/b/user_ed/archive/2015/12/12/visual-studio-code-new-feature-yo-code-生成器-textmate-snippets.aspx
Visual Studio 2015 since Update 2 RC
https://t.co/kmG52wkOXe
Visual Studio Code
http://blogs.msdn.com/b/user_ed/archive/2015/12/12/visual-studio-code-new-feature-yo-code-generator-textmate-snippets.aspx