javascript 如何正确地使用TAB触发器在JSX中使用Emmet

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了javascript 如何正确地使用TAB触发器在JSX中使用Emmet相关的知识,希望对你有一定的参考价值。

{
  "keys": ["tab"], 
  "command": "expand_abbreviation_by_tab", 

  // put comma-separated syntax selectors for which 
  // you want to expandEmmet abbreviations into "operand" key 
  // instead of SCOPE_SELECTOR.
  // Examples: source.js, text.html - source
  "context": [
    {
      "operand": "meta.group.braces.round.js, text.html", 
      "operator": "equal", 
      "match_all": true, 
      "key": "selector"
    }, 

    // run only if there's no selected text
    {
      "match_all": true, 
      "key": "selection_empty"
    },

    // don't work if there are active tabstops
    {
      "operator": "equal", 
      "operand": false, 
      "match_all": true, 
      "key": "has_next_field"
    }, 

    // don't work if completion popup is visible and you
    // want to insert completion with Tab. If you want to
    // expand Emmet with Tab even if popup is visible -- 
    // remove this section
    {
      "operand": false, 
      "operator": "equal", 
      "match_all": true, 
      "key": "auto_complete_visible"
    }, 
    {
      "match_all": true, 
      "key": "is_abbreviation"
    }
  ]
}

以上是关于javascript 如何正确地使用TAB触发器在JSX中使用Emmet的主要内容,如果未能解决你的问题,请参考以下文章

如何在此处正确实现去抖动时间,以便在纯 JavaScript 中每个时间限制仅触发一次?

websocket rails javascript不工作

Handsontable 无法在 q-tab-panel 中正确渲染

如何正确地将值从 pyqt 返回到 JavaScript?

如何在 React 中正确地 fetch() JSON

如何从 JavaScript 设置和触发 css 转换