-1

所以我有一个文本,例如“ this is sample text”,我希望它变成这个“ <![CDATA[this is sample text]]>

我想像这样工作这个功能:我选择任何文本并使用热键ctrl+t左右。

我使用崇高文本 3。

我该如何选择文本?

4

1 回答 1

1

您可以创建一个新的键绑定以使用该insert_snippet命令来包装您的选择。(首选项菜单 -> 键绑定)

{ "keys": ["ctrl+t"], "command": "insert_snippet", "args": {"contents": "<![CDATA[${0:$SELECTION}]]>"}, "context":
    [
        { "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true },
    ]
},
于 2017-01-31T12:08:56.900 回答