2015-05-19 29 views

回答

0

你可以爲此做一個片段。下面是一個例子:

<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