崇高2,如何自动关闭HTML标签并将光标置于标签内 [英] Sublime 2, how to auto close HTML tags and place cursor inside the tag
问题描述
类型
pre>
< strong
然后,输入<$ c
<强>< /强>
然后您的光标将被放置在标记内。
我觉得它在几个月前不会自动执行此操作,或者我可能只是幻觉,或者正在使用不同的软件包......但不管如何,是否可以创建一个设置或脚本将执行此标记行为,Aptana获得100%正确,但由于某种原因,没有其他文本编辑器可以捕获?
- $在Mac中)/ ALT + SHIFT b
- CTRL + SHIFT + >
I'm trying to figure out how to get Sublime 2 to create the following behavior:
Type
<strong
then, upon typing >
Sublime will then immediately print
<strong></strong>
And then your cursor will be placed inside of the tag.
I feel like it did this automatically not more than a few months ago, or maybe I was just hallucinating, or was using a different bundle... but regardless, is there a setting or script I can build that will perform this tag behavior that Aptana gets 100% right but for some reason no other text editor can catch on to?
- CTRL + SHIFT + W (in Mac) / ALT + SHIFT + W (in Windows)
- type "strong"
- TAB
这篇关于崇高2,如何自动关闭HTML标签并将光标置于标签内的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!