user19024715
user19024715

Reputation:

PhpStorm AutoComplete code is not working

I'm using PhpStorm over 3 months and it's a good IDE. I do not know what I've clicked yesterday but since yesterday I have issue with code completion in CSS mainly.

On the screen I have VS Code and PhpStorm and also I've opened the same project.

PhpStorm

VSCode

In VS Code it works perfectly. In PhpStorm it doesn't. I tried some Google First Aid like clear cache, update the IDE, turn On/Off Safe mode etc. but nothing changed.

My Code Completion settings:

PhpStorm Settings

Upvotes: 3

Views: 2323

Answers (2)

buzz8year
buzz8year

Reputation: 416

Reason can easily be IDE's inner power save mode enabled.

Check that, as it stops the IDE from automatically performing the full range of battery-hungry code inspections in the background as you type.

Upvotes: 1

LazyOne
LazyOne

Reputation: 165148

Based on your PhpStorm editor area screenshot (many thanks for that BTW: not many people do post it even if asked), all your CSS files are treated as a Plain Text. It's rather unlikely to be a glitch, more like accidental settings change.

  1. Settings/Preferences | Plugins -- make sure that CSS plugin is enabled. If not -- enable and restart the IDE.

    enter image description here

  2. If still the same: Settings/Preferences | Editor | File Types -- locate "Cascading style sheet" entry and make sure that it has *.css pattern there.

    If not there -- it's possible that you have somehow reassigned it to "Text" file type. If it's there -- just add *.css to Cascading style sheet patterns (it will remove it from Text when doing that).

    enter image description here

If still nothing: you would need to provide more/new screenshots.

Upvotes: 2

Related Questions