How to disable auto-completion popup of units of measure in CSS files?

Hello.

PhpStorm 2017.2

 

7
7 comments

You can disable auto-displaying of completion popup in Settings | Editor | General | Code Completion - Autopopup code completion. It can't be disabled for a particular type of completion.

0
Avatar
Permanently deleted user

really annoying thing. WebStorm 2018.1

please consider disable autocomplete for CSS units

Example:

border-left: 9px solid transparent;
border-right: 9px solid transparent;
border-top: 10px solid red;

I need change values in all rows.

Expected behavior:
I change value and when I press key 'DOWN' it navigates pointer to the next row.

Existed behavior:
There is autocomplete is shown every time when I end typing. And when I press key 'DOWN' it selects next item in the dropdown.

 

2

Agree with Kodiua 100%.  This happens to me a hundred times a day.  I have to spam escape every time.

2
Avatar
Permanently deleted user

Me too! I don't want this behavior but I don't want to disable code completion entirely. This one interaction is the only annoying thing about PHPStorm.

Please make this an option: Disable CSS unit code completion.

1

Same for me! Or at least, it should be smarter.

font-size: 18px. If my cursor is at 1|8px, it suggests me to add a unit? Why? When I add unit in that place it becomes 1px8px. Same for 18|px. If I add a unit in that place => 18pxpx.

So my suggestion would be, that if the unit already exists or isn't needed in that place, do not display unit selection dropdown.

However, since it is anyway faster to type px/rem/em/whatever than select it from the dropdown, it would be helpful that there would be option to disable it altogether, for css units only.

I am using PhpStorm 2018.2.

1
Avatar
Permanently deleted user

The IDE is getting in the way here. Please allow us to disable it.

Niko Viitala also brought up a great point where the autocomplete (in general) should recognize that whatever it is going to place should also replace an exact match. In these cases, the autocomplete gets in the way again since the suggestion cannot be used without first hitting escape and deleting the existing text, then going back and re-doing the autocomplete.

0

Yes, this feature is super annoying and can't be turned off! This is below your usually flawless product quality JB!

0

Please sign in to leave a comment.