sublimetext3を使っているのですが、スニペットの二つ目がうまくいきません。一つ目はうまくいきます。
入力補完の候補としては出てくるのですが、window.onloadとだけ出てしまいます。
一つ目を削除するとすべて出てきます。
<snippet> <content><![CDATA[ const getId = document.getElementById('${1}'); setTimeout( () => { getId.style.visibility='hidden' }, 2000); ]]></content> <!-- Optional: Set a tabTrigger to define how to trigger the snippet --> <tabTrigger>setTimeout</tabTrigger> <!-- Optional: Set a scope to limit where the snippet will trigger --> <scope>source.js,text</scope> <content><![CDATA[ window.onload = () => { const getId = document.getElementById('${1}'); } ]]></content> <!-- Optional: Set a tabTrigger to define how to trigger the snippet --> <tabTrigger>window.onload</tabTrigger> <!-- Optional: Set a scope to limit where the snippet will trigger --> <scope>source.js,text</scope> </snippet>
あなたの回答
tips
プレビュー