skip to Main Content

I am coding on an M2 Macbook Air, and when right clicking on the termial in VS Code, I see 2 commands: kill terminal and clear. What is the difference between both? They seem fairly similar.

3

Answers


  1. Chosen as BEST ANSWER

    I was able to fix the issue. It must have been a bug on my end.


  2. Killing the terminal stops whatever is running from running and shuts down the terminal; clearing the terminal removes previous commands to "tidy up" the appearance, but keeps the terminal open.

    Login or Signup to reply.
  3. … one clears it ("clears the screen" without closing the session- more of a visual aesthetic thing to visually declutter). Somewhat related but not 100% related: the UNIX clear command, and readline’s clear-display binding.

    and one kills it (terminates the shell session). Somewhat related but not 100% related: the logout command and readline’s end-of-file binding (since it’s often configured to close upon the end-of-file character (see also stty eof)), bash’s exit builtin command.

    Also note that if you want to do these actions via VS Code’s command palette, you can use Terminal: Clear and Terminal: Kill the Active Terminal Instance or the other Terminal: Kill ... commands.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search