> ## Content Index
> Fetch the complete content index at: https://itsfoss.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# How to Clear Terminal in VS Code
- URL: https://itsfoss.com/vs-code-clear-terminal/
- Published: 2023-04-24T03:28:21.000Z
- Updated: 2023-04-24T03:28:21.000Z
- Description: Don't like the cluttered terminal screen in VS Code? Here's how to clear it with a keyboard shortcut.
- Author: Sagar Sharma
- Tags: Quick Tip, #hide

Like any other [modern code editor](https://itsfoss.com/best-modern-open-source-code-editors-for-linux/), the VS Code has an integrated terminal that is generally used to showcase the output of a code.

But how are you supposed to clear the terminal?

Well, the easiest (tested on Windows and Linux) is to hover the cursor over the terminal and use the `Ctrl + l` to clear the terminal.

Alternatively, you can use the Ctrl + \` to get into the terminal window:

![clear terminal in VS Code](https://itsfoss.com/content/images/2023/04/Clear-the-terminal-in-VS-Code.gif)

That works but takes a bit longer. What if you want to use any other shortcut? In this tutorial, I will show you how to do that.

## Clear the terminal in VS Code

Here, I will walk you through step by step how you can allocate a specific shortcut to clear the terminal in VS Code.

First, press `Ctrl + Shift + p` and it will bringyou the command editor:

![command editor in VS Code](https://itsfoss.com/content/images/2023/04/command-editor-in-VS-Code.png)

Here, you will have to search for clear command for the terminal by typing the following in the command editor:

```
Terminal: Clear
```

And click on the little gear icon for the first result:

![Find clear terminal shortcut in VS Code](https://itsfoss.com/content/images/2023/04/Find-clear-terminal-shortcut-in-VS-Code.png)

Here, click on the plus `+` icon and it will ask you to create a shortcut to clear the terminal. You may use various options, but in case, I went with `Ctlr + Alt + l` as it was not occupied by any other operation:

![Create a show](https://itsfoss.com/content/images/2023/04/create-shortcut-to-clear-the-terminal-window-in-VS-Code.png)

Once done, press the `Enter` key to confirm the shortcut and that's it!

From now on, you don't have to switch to the terminal window to clear the terminal:

![Clear the VS Code terminal using shortcut](https://itsfoss.com/content/images/2023/04/Clear-the-terminal-using-shortcut-in-VS-Code.gif)

Pretty cool. Isn't it?

## Looking for more VS Code shortcuts?

Shortcuts give you a superpower. Mastering correct shortcuts makes you more efficient and helps you become more productive.

Here are a [list of best VS Code shortcuts](https://itsfoss.com/vs-code-shortcuts/) you should know and master.

[15 Best VS Code Keyboard Shortcuts to Increase ProductivityDo you want to be highly productive? Get familiar and memorize these VS Code keyboard shortcuts for Linux, Windows, and macOS.![](https://itsfoss.com/content/images/size/w256h256/2022/12/android-chrome-192x192.png)It's FOSSCommunity![](https://itsfoss.com/content/images/wordpress/2021/06/vs-code-shortcuts.png)](https://itsfoss.com/vs-code-shortcuts/)

By the way, have you heard of VSCodium, a complete open source version of VS Code?

[VSCodium: 100% Open Source Version of Microsoft VS CodeBrief: VSCodium is a clone of Microsoft’s popular Visual Studio Code editor. It’s identical to VS Code with the single biggest difference that unlike VS Code, VSCodium doesn’t track your usage data. Microsoft’s Visual Studio Code is an excellent editor not only for web developers but![](https://itsfoss.com/content/images/size/w256h256/2022/12/android-chrome-192x192.png)It's FOSSAbhishek Prakash![](https://itsfoss.com/content/images/wordpress/2019/04/vscodium.png)](https://itsfoss.com/vscodium/)

I hope you will find this helpful. And if you have any queries, feel free to ask in the comments.