HTML-CSS-Class-Completion icon indicating copy to clipboard operation
HTML-CSS-Class-Completion copied to clipboard

Suggest completion only for the classes in CSS files linked in the current HTML file

Open linjialiang opened this issue 6 years ago • 4 comments

Is anyone still maintaining it?

I think this needs to add an option to only get those CSS stylesheets and built-in styles that have been added

linjialiang avatar Aug 04 '19 03:08 linjialiang

I have a lot of CSS stylesheets in the project, but the current HTML file just loads style1.css. I just want to list the CSS values associated with style1.css

linjialiang avatar Aug 04 '19 03:08 linjialiang

Would you mind elaborating on what do you mean by getting the "CSS stylesheets and built-in styles that have been added"? Do you mean new changes or additions to an existing CSS file in the workspace?

zignd avatar Aug 05 '19 03:08 zignd

This plug-in gets the values of the CSS styles for the entire project!

  • In practice, however, only the styles of the CSS stylesheets loaded in the HTML page are useful!

linjialiang avatar Aug 05 '19 05:08 linjialiang

Let's say I have more than 1000 style sheet files in my project:

style0.css
style1.css
style2.css
style3.css
style4.css
style5.css
style6.css
style7.css
style8.css
style9.css
style10.css
...
style1024.css

HTML contains only one stylesheet file:

<html>
    <head>
        <title>demo</title>
        <link href="./sytle0.css" rel="stylesheet" type="text/css">
    </head>
    
    <body>
        <style>
            ...
        </style>
        I just want to get inline styles and style0.css styles !
    </body>
</html>

linjialiang avatar Aug 05 '19 06:08 linjialiang