0
是否有崇高的文本2的方式來建立autoreplace,這樣我就可以讓應用程序自動擴展Coffescript簡寫成JS,即:崇高的文本2:如何設置autoreplace
(args**)->
自動轉換爲
function(args**){}
?
是否有崇高的文本2的方式來建立autoreplace,這樣我就可以讓應用程序自動擴展Coffescript簡寫成JS,即:崇高的文本2:如何設置autoreplace
(args**)->
自動轉換爲
function(args**){}
?
你可以爲此做一個片段。下面是一個例子:
<snippet>
<content><![CDATA[
function(args**){${1}}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>(args**)-></tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>
然後可以鍵入(args**)->
+ 標籤並且它被轉換爲function(args**){}
,其中光標被設置在大括號之間。
欲瞭解更多信息,請參閱Sublime Text Docs: Snippets