最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

css - Enable 'smart' semicolon behaviour on auto-completion - Stack Overflow

programmeradmin1浏览0评论

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
  • FWIW, you can press Cmd + Enter (or Ctrl + 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
Add a comment  | 

1 Answer 1

Reset to default 0

Extension CSS Semicolon Fix seems to do the trick

发布评论

评论列表(0)

  1. 暂无评论