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

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

    It's in Visual Studio's Preferences. Solution from sbi's answer here:

    • Go to Tools/Options/Environment/Keyboard.
    • Switch the "Use new shortcut in:" dropdown to "Text Editor".
    • Pick the Edit.BreakLine command.
    • In the Press shortcut keys edit pane press Shift+Enter.

    Worked for me!

提交回复
热议问题