Not working Autocomplete document.querySelector
Hello,
I'm trying to use phpstorm , i know its mostly for backend but I using it for everything, including frontend.
For some reason selectors are not working when when i write something like this document.querySelector('#myid'), not autocompleting my query, but it do working if you use jquery (i mean something $('#myid'). Why?
Please sign in to leave a comment.
PhpStorm auto-injects CSS in JQuery calls, but this feature is not currently supported for document.querySelector() (https://youtrack.jetbrains.com/issue/WEB-8192).
You can inject it manually with Alt+Enter: put cursor on '#myid', hit Alt+Enter, choose Inject language or reference > JQuery-CSS:
This should do the thing: