简体   繁体   中英

Emmet tab completion - unexpected results (Sublime text 2)

I've been using Emmet with Sublime Text 2 and my tab completions have changed and I'm not sure why.

Where I used to enter 'div' (tab) and get <div></div> ; now I get display: block;

Other examples:

  • 'p' (tab) was <p></p> ; now is padding: ;
  • 'h1' (tab) was <h1></h1> ; now is height: 1px;

Based on other issues like this, I've entered the following in the Emmet User Preferences, But this has not solved the issue:

"remove_html_completions": true,
"disable_tab_abbreviations_on_auto_complete": false

The cause of the error was in the document source code (an invalid comment inside a style tag). Once the source code was fixed; Emmet was back to normal.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM