选择

Action is similar to “Go to Edit Point”, but selects important code parts.

这个功能类似于编辑点间移动功能,但是选择重要的代码部分。

In HTML, these are tag name, full attribute and attribute value. For class attribute it also selects distinct classes.

对于 HTML,选择标签名,完整的属性与属性值。对于 class 属性也选择不同的 class。

  1. <textarea class="movie-def">
  2. |&lt;section&gt;
  3. &lt;p&gt;&lt;/p&gt;
  4. &lt;div class="main footer"&gt;&lt;/div&gt;
  5. &lt;script&gt;var str = '<div class="main footer"></div>';&lt;/script&gt;
  6. &lt;/section&gt;
  7. @@@
  8. run: {command: 'emmet.select_next_item', times: 7} ::: “Select Next Item” (Shift-Cmd-.)
  9. wait: 1000
  10. run: {command: 'emmet.select_previous_item', times: 6} ::: “Select Previous Item” (Shift-Cmd-,)
  11. wait: 1000
  12. moveTo: 4:12
  13. wait: 1000
  14. tooltip: “Select Item” action may also work in non-HTML syntaxes
  15. wait: 500
  16. run: {command: 'emmet.select_next_item', times: 5}
  17. </textarea>

In CSS, it matches selector, full property and property value. For complex values and functions like 1px solid red or url(image.jpg) also selects part of it.

对于 CSS,选择选择器,完整的属性与属性值。对于复杂的值比如 1px solid redurl(image.jpg) 也选择子部分。