문제

Is there a way you can make your own shortcuts for your tags, like if I type in "li" It will automatically put in li type="square" and all I have to do is hit enter?

도움이 되었습니까?

해결책

Have you tried to make your own snippets?

Try the New Snippet command in the Tools-menu and add the following and save it:

<snippet>
    <content><![CDATA[
<li type="square">${1:Item} ${2:}
]]></content>
    <tabTrigger>li</tabTrigger>
</snippet>

This will enter an <li>-tag in the current file if you type li and then press Tab. You can also add a <scope> tag to limit it to HTML-files.

From the unofficial documentation:

Snippets can be stored under any package’s folder, but to keep it simple while you’re learning, you can save them to your Packages/User folder

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top