How to use the emmet.expand_abbreviation_with_tab function in emmet

To help you get started, we’ve selected a few emmet examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jsbin / jsbin / public / js / editors / mobile-keyboard.js View on Github external
complete: function () {
      var focused = jsbin.panels.focused;
      if (focused.id === 'html' || focused.id === 'css') {
        CodeMirror.commands['emmet.expand_abbreviation_with_tab'].call(null, focused.editor);
      } else if (focused.editor._hasCompletions && focused.editor._hasCompletions()) {
        focused.editor._showCompletion();
      } else {
        CodeMirror.commands.autocomplete(focused.editor);
      }
      focused.editor.focus();
    },
  };