如何在sublime text中选择匹配html标签中的所有内容2.我尝试过“将选择内容展开到括号”,但不起作用。对于ex。
<div class="container">
<p>
Text goes here...
</p>
<p>
Text goes here...
</p>
<p>
Text goes here...
</p>
more content...
</div>
我想选择div.container的所有内容
不过,我找到了一个窍门
我试过的就是做“冷折叠”然后全部选中。但我希望有捷径或构建它。
发布于 2015-07-09 04:23:38
我在Mac上使用Sublime Text 2和Emmet,cmd +d为我选择匹配的单词,而不是HTML标签之间的文本。
我可以通过cmd + shift +a来实现(在开始和结束标签之间选择文本,例如<h3>Only Want to Select This Text</h3>
)
发布于 2016-05-18 11:11:26
这对我很管用
首选项->按键绑定-用户
然后将此代码添加到
{ "keys":"ctrl+shift+a","command":"expand_selection","args":{"to":"tag"} },
https://stackoverflow.com/questions/15465597
复制相似问题