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

后端 未结 10 1538
故里飘歌
故里飘歌 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:17

    Ctrl+Shift+P and open Preferences:Open keyboard shortcuts (JSON) in VS Code

    and insert

    {
        "key": "tab",
        "command":"cursorEnd",
        "when":"editorTextFocus"
    }
    

    tab is optional, ofc. Put whatever you want from the keys on the keyboard.

提交回复
热议问题