9

我必须反复粘贴来自乳胶源的代码,所以我每次都必须进行大量查找和替换操作('"a' => 'ä', '"o' => 'ö', ...) .

有没有办法存储这些搜索和替换规则,例如,我可以通过一个按键来执行所有这些规则?

4

2 回答 2

12

Did you check RegReplace? It is a simple find and replace sequencer plugin for Sublime Text 2. It can be installed through Package Installer.

In the end you will have to create some files that will look as follow:

{
    "keys": ["ctrl+shift+t"],
    "command": "reg_replace",
    "args": {"replacements": ["change_a_accent", "change_o_accent"]}
}
于 2013-09-06T15:10:58.547 回答
0

如果您正在寻找编码/解码 LaTex 口音,我为此创建了一个特殊的插件:https ://github.com/kpym/SublimeLaTeXAccents 。

于 2014-05-01T14:28:45.957 回答