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?
Share Improve this question edited Jan 31 at 4:21 Paulie_D 115k13 gold badges165 silver badges184 bronze badges asked Jan 30 at 23:35 skyisredskyisred 7,1056 gold badges41 silver badges56 bronze badges 1 |1 Answer
Reset to default 0Extension 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