10

崇高なテキスト2にショートカットコマンドが欲しい。

sopl入力して押すだけで、選択した単語tabを生成し、置き換える準備ができました。System.out.println('text');'text'

sop入力して押すだけで、選択した単語tabを生成し、置き換える準備ができました。System.out.print('text');'text'

SublimeJavaプラグインをインストールしましたが、どうやらそのようなショートカットはありません

4

1 に答える 1

23

You're looking for pl<tab> for System.out.println(|); and p<tab> for System.out.print(|);. It doesn't put the 'text', but it does put your cursor in the right place to type. Also note that, like Eclipse or IntelliJ, when you expand a Snippet, Tab will continue to move you through the positions in the Snippet until you've filled in all the blanks.

These are called "Snippets", and you can find them under Tools -> Snippets.... You can add new ones with Tools -> New Snippet....

于 2013-02-28T02:18:27.537 に答える