How to clear the terminal (short cut or command line/Mac)?

How to clear the terminal (short cut or command line)?

You know the terminal add lines when you enter command lines and run your code. It those lines will contain all kinds of data, such as print statements, errors , instructions, etc.

I want to clear it. I assume there is a short cut or command line for it.

I googled, I searched in the gitpod docs and community but nothing. I may be terrible at searching. Thanks for your patience.

If you are looking for a shortcut then it should be: Ctrl(could be MetaKey on mac) + L (or K)

And if you prefer to type in a command then it’s a command called clear

Hope this helps!

1 Like