Code Completion only working on certain files
For some reason my code completion is only working on certain files inside my WordPress project in in phpstorm. Just updated to 2016.3.1.
The code completion i'm really looking for is bootstrap classes. These classes seem to be working in my header.php, and footer.php files, but all other php files seem to not find the classes (index.php).
I have noticed that my index.php file is giving me code completion for angular though.
I would really appreciate some help on this.
P.S. I have already tried invalidating caches and removing the .idea folder. I have also tried to remove wordpress plugin and re add it.
Thanks in advance!
请先登录再写评论。
Could you please show us a screenshot of the whole IDE window while index.php is opened there, with the completion list invoked?
Absolutely. Below I have attached two screenshots. One shows the Angular completion, the other shows no code complete when trying to complete the Bootstrap container class.
@Marissa
I could be wrong here (since I do not use local <style> tags in partial files) .. but since you have that tag .. IDE may be limiting your styles to only those defined there...
Temporarily remove your whole <style> tag and see if it will make any difference.
https://youtrack.jetbrains.com/issue/WEB-2223 (and related, https://youtrack.jetbrains.com/issue/WEB-7317 in particular)
Wow you are a genius! That worked perfectly. That is some odd behavior though and it looks like there is still no fix.