How to add semicolon to the end of the line in visual studio code

后端 未结 10 1575
故里飘歌
故里飘歌 2020-11-30 02:35

I press Shift+Enter, but not working, Ctrl+Enter start a new line, but not add semicolon at the end of previous line. Is there a

10条回答
  •  忘掉有多难
    2020-11-30 03:33

    I wrote an extension to mimic IntelliJ's complete statement. Pressing ctrl+; (cmd+; on mac) appends ; to the line end, and moves cursor to line end. If the line already ends with ;, pressing ctrl+; just moves cursor to line end.

    There is also experimental support for complete structures like class, interface, function, if, switch, for, and while. (Not understanding semantic of languages, so it may not work as you expected.)

    You can install it as VSIX at GitHub.

    The version vscode marketplace is outdated. (Unfortunately my M$ account has been suspended, thus I cannot update it.)

提交回复
热议问题