具有文本片段支持的编辑器?

发布于 2024-07-16 12:29:06 字数 184 浏览 8 评论 0 原文

我知道 etexteditor 和 vim/emacs。

是否有任何其他 Windows 编辑器具有类似文本的片段支持(例如,您编写触发词,按 Tab,它会更改为某些内容,您再次按 Tab,它会更改为第一站,然后您可以在那里输入一些内容,它会根据定义的代码片段在其他几个地方进行更改)? 我知道这有点奇怪,但你可能明白我的意思。

I know of etexteditor and vim/emacs.

Are there any other windows editors which have textmate-like snippets support (eg. you write trigger word, press tab, it changes to something, you press tab again, and it changes to first stop, you can then enter something there and it will change on several other places according to snippet defined) ?
I know it's a little weird explanation, but you probably know what I mean.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(9

逆蝶 2024-07-23 12:29:06

你可以使用 snipMate vim 插件 - 我使用它并且它效果很好

You can use the snipMate plugin for vim - I use it and it works great

谁许谁一生繁华 2024-07-23 12:29:06

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.

⊕婉儿 2024-07-23 12:29:06

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.

尐籹人 2024-07-23 12:29:06

如果您使用 jEdit 将会执行类似的操作/plugins/?SuperAbbrevs" rel="nofollow noreferrer">SuperAbbrevs 插件。

jEdit will do something similar if you use the SuperAbbrevs plugin.

拥醉 2024-07-23 12:29:06

Visual Studio 可以做到这一点,但它远不如 textmate / e 好。

Visual Studio will do this, but it's nowhere near as nice as textmate / e.

请远离我 2024-07-23 12:29:06

我不使用 Windows,但在寻找 Linux 的替代品时,我遇到了 e-texteditor

I don't use windows but whilst searching for a alternative for linux I came across e-texteditor.

我要还你自由 2024-07-23 12:29:06

您可以考虑使用独立于 IDE 的应用程序来扩展代码片段。

我有一个 lorem ipsum 片段; 其中包含我的 URL、我的电子邮件等,但您也可以制作包含代码的片段。

应用程序:Textexpander Mac、Mac 版 TypinatorTexter 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)

夜声 2024-07-23 12:29:06

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/

遗心遗梦遗幸福 2024-07-23 12:29:06

自 Update 2 RC 起的 Visual Studio 2015

Visual Studio 现在支持使用 TextMate 片段
通过将 tmSnippet 文件放入代码片段中进行 IntelliSense 补全
文件夹。

https://t.co/kmG52wkOXe

Visual Studio 代码

代码生成器的另一个补充是添加选项
TextMate 代码片段 (.tmSnippets) 到 VS Code

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

Visual Studio now supports consuming TextMate snippets with
IntelliSense completion by placing tmSnippet files into a snippet
folder.

https://t.co/kmG52wkOXe

Visual Studio Code

Another addition to the yo code generator is the option to add
TextMate Snippets (.tmSnippets) to VS Code

http://blogs.msdn.com/b/user_ed/archive/2015/12/12/visual-studio-code-new-feature-yo-code-generator-textmate-snippets.aspx

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文