简体   繁体   English

在HTML sublime text 2中自动完成css类或id

[英]Auto complete css classes or id's in HTML sublime text 2

I am trying to get Sublime Text 2 to auto complete from a linked (open or not) css file, but it will not display any class or id's. 我试图从链接(打开或不打开)的css文件中获取Sublime Text 2自动完成,但它不会显示任何类或ID。

(I've also tried other packages "Anyword Completion", "All Autocomplete", "SublimeCodeIntell" with no success) (我也试过其他软件包“Anyword Completion”,“All Autocomplete”,“SublimeCodeIntell”但没有成功)

i.e. when you type: <div class="" or <div id=""

I want it to display the list of classes or id's available linked from my style sheet. 我希望它显示从我的样式表链接的类列表或可用的ID。 (style sheet is correctly linked to the page!) (样式表正确链接到页面!)

Thanks! 谢谢!

If I'm understanding your question properly then Emmet is a great plugin for this. 如果我正确理解你的问题,那么Emmet就是一个很好的插件。

Example: 例:

在此输入图像描述

Here's a Video tutorial on how to use it and here's the Emmett Documentation . 这是一个关于如何使用它的视频教程 ,这里是Emmett文档 Hope this helps! 希望这可以帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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