Less auto complete stops working

Can't figured out, but in my Django projects Less autocompletion in HTML editor stops working. It's really annoying thing. In 3 projects it's not working, and in one Django project it works. And in 3 problem projects CSS auto completion works partly only for several css files. Reinstalling PyCharm, Invalidating caches, restarting, deleting .idea folder doesn't help.

I use Pycharm 2017.3.4. Can someone help me to fix this problem with LESS/CSS auto completion in Pycharm?

 

0

what do your HTML files look like? For complete HTML documents with <!DOCTYPE> header, only those CSS classes/IDs that are defined in project .css/.less/.scss files explicitly linked to HTML via <link> tag are included in completion.
For partials (templates), normally completion is available for all selectors defined in project stylesheeet files unless the partial file has a <link> or <style> tag: in the latter case, only selectors defined in explicitly linked files/embedded stylesheets are shown in completion

 

Note that starting with 2018.1 IDE will suggest CSS classes from all stylesheet files when no variants from the linked CSS files or within the <style> tag are found or if code completion is invoked twice.

0

Elena, thank you for explaining! 

I understand now that problem appears only in partials with the <style> tag inside. Such behavior was not obvious to me.

Can't wait for 2018.1 release! :)

0

请先登录再写评论。