how to stop a command in the VS Code terminal

后端 未结 11 1035
天命终不由人
天命终不由人 2021-02-06 22:48

I\'ve been stopping commands with the trash can for too long. Command period doesn\'t work on Mac. I can\'t find anywhere how to stop the terminal via a command. Anyone know wha

相关标签:
11条回答
  • 2021-02-06 23:30

    Hitting escape clears out the terminal and cancels evreything.

    0 讨论(0)
  • 2021-02-06 23:33

    you can stop any running command by pressing control + c in your keyboard.

    0 讨论(0)
  • 2021-02-06 23:35

    If it is ':' you see then "q" + enter.

    eg: git config --list (this will take you to the colon and nothing works to escape)

    0 讨论(0)
  • 2021-02-06 23:38

    Neither ctrl + c nor the trash icon actually stopped the server for me.

    If you are using the Live Server extension by Ritwick Day, there should be a label on the bar at the bottom for the status of the server.

    If it reads Port: 5500 it means it's running. Just click on it to stop it.

    stop live server

    The same label now should say Go Live click on it in order to do exactly that.

    start live server

    0 讨论(0)
  • 2021-02-06 23:39

    ctrl + c works in terminal but didn't work for me in vs code. However hitting q did ( when running a git diff for example)

    0 讨论(0)
  • 2021-02-06 23:42

    You can terminate with the Trash icon like you do, or press Control + C. That's the shortcut from the default Terminal app and it also works in VS Code.

    Hope this helps! ✌

    0 讨论(0)
提交回复
热议问题