崇高2,如何自动关闭HTML标签并将光标置于标签内 [英] Sublime 2, how to auto close HTML tags and place cursor inside the tag

查看:119
本文介绍了崇高2,如何自动关闭HTML标签并将光标置于标签内的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



类型



pre> < strong

然后,输入<$ c











<强>< /强>

然后您的光标将被放置在标记内。



我觉得它在几个月前不会自动执行此操作,或者我可能只是幻觉,或者正在使用不同的软件包......但不管如何,是否可以创建一个设置或脚本将执行此标记行为,Aptana获得100%正确,但由于某种原因,没有其他文本编辑器可以捕获?

解决方案

    $在Mac中)/ ALT + SHIFT b
  1. CTRL + SHIFT +
  2. >


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?

解决方案

  1. CTRL + SHIFT + W (in Mac) / ALT + SHIFT + W (in Windows)
  2. type "strong"
  3. TAB

这篇关于崇高2,如何自动关闭HTML标签并将光标置于标签内的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆