Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

CSS code hints should not auto append a semicolon after selecting a property value. #2625

Closed
RaymondLim opened this issue Jan 20, 2013 · 5 comments
Milestone

Comments

@RaymondLim
Copy link
Contributor

There are lots of CSS properties that require the user to enter multiple values. So we cannot assume that the user is done with the current property and auto append the ;.

@redmunds
Copy link
Contributor

Yes, that came up during the code review, but multiple values was out-of-scope, so we let it go, for now. With that said, I agree with this change.

@ghost ghost assigned dangoor Jan 24, 2013
@dangoor
Copy link
Contributor

dangoor commented Jan 24, 2013

I'd like to give this a shot to learn a little about this part of the code.

RaymondLim added a commit that referenced this issue Jan 25, 2013
fixes #2625: don't auto append semicolon after selecting a property value
@StephenESC
Copy link

Any way this could be added back in?

Not necessarily the way it was before, but essentially how MacRabbit’s Espresso does it. The semicolon, preceded by a single space, gets automatically appended upon completing the CSS property, not the value, and the cursor is inserted just before the semicolon.

This way, you could add as many values as you’d like before moving onto the next declaration. Plus, pressing Command+Return in both Expresso and Brackets already automatically creates a new line, without needing to navigate around the semicolon, so it would be fairly seamless reintegration.

(Pretty please?)

@jmes
Copy link

jmes commented Mar 11, 2016

Would love to see this too, though I don't know how to do it.

@nrvnm
Copy link

nrvnm commented May 9, 2017

Please, seriously, make this an option. I like the way WebStorm append semicolon and such behavior doesn't break the flow.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants