You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Launching Vscode from git bash makes it impossible to clear the terminal window #33730
*duplicateIssue identified as a duplicate of another issue(s)terminalGeneral terminal issues that don't fall under another labelupstreamIssue identified as 'upstream' component related (exists outside of VS Code)windowsVS Code on Windows issues
changed the title [-]Launching Vscode from git bash makes it impossible to clear the terminal windows[/-][+]Launching Vscode from git bash makes it impossible to clear the terminal window[/+]on Sep 2, 2017
This issue has been closed automatically because it needs more information and has not had recent activity. Please refer to our guidelines for filing issues. Thank you for your contributions.
I have this issue everyday... it's actually the one and only issue i have with vscode.
When i first open a folder with vscode, the git bash terminal does not clear itself when i use the "clear" command. Using ctrl+k (i'm using windows 10) does not fix the issue since it clears the terminal but once i start typing, the previous state of the terminal overlaps whatever i was trying to type.
*duplicateIssue identified as a duplicate of another issue(s)terminalGeneral terminal issues that don't fall under another labelupstreamIssue identified as 'upstream' component related (exists outside of VS Code)windowsVS Code on Windows issues
Activity
[-]Launching Vscode from git bash makes it impossible to clear the terminal windows[/-][+]Launching Vscode from git bash makes it impossible to clear the terminal window[/+]Tyriar commentedon Sep 11, 2017
Can you provide a screenshot of what happens after you run
clear?sfabriece commentedon Sep 16, 2017
Daniel Imms (@Tyriar) There you go.

ioanungurean commentedon Sep 24, 2017
Hello, any updates on this? I have the same problem.
Tyriar commentedon Sep 26, 2017
Ryan Prichard (@rprichard) any idea why clear would not be clearing the terminal?
vscodebot commentedon Oct 3, 2017
This issue has been closed automatically because it needs more information and has not had recent activity. Please refer to our guidelines for filing issues. Thank you for your contributions.
hansnow commentedon Oct 12, 2017
Same issue. Only launch vscode via
code <some-folder>in git bash will trigger this bug. same command in cmd works fine.abdulghani commentedon Nov 19, 2017
same exact issue here 😩 if i launch vscode from git-bash it won't clear the terminal 😭😭
nateous commentedon May 18, 2018
would love to stay inside vscode integrated terminal for work but not having clear is really annoying... is this slated to get worked?
Tyriar commentedon May 18, 2018
Nate Bell (@nateous) try ctrl/cmd+k (windows/mac) or trigger the "Terminal: Clear" command through the command palette (F1).
farrukhmomin commentedon May 25, 2018
Daniel Imms (@Tyriar) thanks, ctrl+k works.
Tyriar commentedon May 25, 2018
Tracking this in #45693
In the meantime ctrl+k (WIndows), cmd+k (macOS) will still clear the terminal properly, you can also run the command through the command palette. If the keybinding is not working for you see the FAQ on https://code.visualstudio.com/docs/editor/integrated-terminal#_common-questions about fixing the issue.
PauloGasparSv commentedon Jun 12, 2018
I have this issue everyday... it's actually the one and only issue i have with vscode.
When i first open a folder with vscode, the git bash terminal does not clear itself when i use the "clear" command. Using ctrl+k (i'm using windows 10) does not fix the issue since it clears the terminal but once i start typing, the previous state of the terminal overlaps whatever i was trying to type.
mehulmpt commentedon Jun 14, 2018
I'm facing the same bug which Paulo (@PauloGasparSv) told