[英]Sublime 2, how to auto close HTML tags and place cursor inside the tag
I'm trying to figure out how to get Sublime 2 to create the following behavior: 我试图弄清楚如何让Sublime 2创建以下行为:
Type 类型
<strong
then, upon typing >
然后,在打字时
>
Sublime will then immediately print 然后Sublime会立即打印出来
<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? 我觉得它不会在几个月前自动完成,或者我可能只是产生幻觉,或者正在使用不同的捆绑包......但无论如何,是否有我可以构建的设置或脚本将执行此标记行为Aptana 100%正确,但由于某种原因没有其他文本编辑器可以接受?
To get auto-complete of HTML in sublime text 2 I had follow this step :- 要在sublime text 2中自动完成HTML,我按照以下步骤操作: -
open sublime -> view -> syntax -> HTML open sublime - > view - > syntax - > HTML
I hope this will provide you auto-complete of sublime. 我希望这将为您提供自动完成的崇高。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.