-
Notifications
You must be signed in to change notification settings - Fork 29.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[css] add semicolon on value completion #32200
Comments
This is would be absolutely awesome, thanks for posting this. |
support |
Why is this closed? Already done? |
It's not closed... |
There is no way to do this consistently -- for properties that have enum property values we can auto-complete the semicolon, but for others we can't. Also there is the case of |
Screw semi colon, add colon - this is crucial! Not having colon after prop complete breaking flow so much. This is implemented in atom, so why no love for vscode? |
I don't see any reason why this couldn't be added as an option in the settings. Leave it disabled by default and people who want it could enable it. |
a way it could work constantly is to add it wenn you put in the "align-items" it autocompletes to "align-items: ;" and the cursor is placed right in front of the semicolon so you can add in one or multiple values... |
Oh yes, add semicolon on value completion is really needed. |
I just searched for a solution to this and stumbled across this thread. This bug is so incredibly ANNOYING! Incredible they have shipped VS without fixing this first. |
Not having colon after the property, this is the dumbest "feature" of VSCode by far. I've been using VSCode it for a year now and I found myself absolutely hampered while writing code. Back in the days #Macromedia's Dreamweaver was the tool. Wish it would come back in some form. Dreamweaver 8 was such great tool before Adobe ruined it. I guess phpStorm/webStorm is the only way to go today in order to have a normal editor. I like Sublime and Coda, but jetBrains is blowing everyone out of the water. But, I'm going off topic... Again, it is completely unbelievable that this was shipped like this, and that it even had so many updates not having this implemented. Do you even CSS? |
@nemanjacosovic We already add a colon after the property name. I assume you mean semicolon after the value? |
I guess this comes as part of property value completion. I think the best solution is to use https://github.com/csstree/csstree to understand the The current problem:
|
@aeschli no, he means this:
|
@yyynnn Please file a separate issue: This issue is about the semicolon. We already add colons for properties (but don't show this in the proposal label) |
Can anyone help how to active auto colons after completing css properties like
how to add ( : ) automatically in Visual studio 2017 not visual code |
I'm wondering what exactly are you all asking. Please upvote below three posts accordingly. |
Steps to Reproduce:
align-items:
)center
)It would be nice if selecting suggestions added the semi colon at the end automatically, like atom does on css/scss files. AFAIK there's no way to configure this in current VSCode, maybe a setting could be provided if it's too strong for a default.
The text was updated successfully, but these errors were encountered: