When VS Code auto-fills a declaration, it adds a semicolon after the cursor. In other editors, this semicolon is somewhat 'smart': on Enter press, the semicolon remains on the same line and if you type another semicolon, it replaces the original.
In VS Code, the semicolon acts as a regular character (Moves to the next line on enter, and doubles if you press ; next to it)
Is there a way to enable this 'smart' behaviour?
When VS Code auto-fills a declaration, it adds a semicolon after the cursor. In other editors, this semicolon is somewhat 'smart': on Enter press, the semicolon remains on the same line and if you type another semicolon, it replaces the original.
In VS Code, the semicolon acts as a regular character (Moves to the next line on enter, and doubles if you press ; next to it)
Is there a way to enable this 'smart' behaviour?
Extension CSS Semicolon Fix seems to do the trick
Cmd + Enter
(orCtrl + Enter
on windows) to create a new line regardless where your cursor is without breaking the current line. – Hao Wu Commented Jan 31 at 2:07