Vscode terminal doesnt display folder and branch

前提是你 提交于 2021-01-29 10:52:29

问题


Following is how I see the termial:

Vscode for some reason does not display the folder name and git branch by default. I have vscode on another system with no custom settings made and it displays them plus the colours as well.

vscode settings:

{
    "workbench.colorTheme": "Monokai Dimmed",
    "workbench.iconTheme": "material-icon-theme",
    "terminal.integrated.copyOnSelection": true,
    "terminal.integrated.cursorBlinking": true,
}

回答1:


The folder name and branch in the terminal prompt come from the shell, not from VS Code.

It is likely that one of your system's shells has a custom prompt set while the other does not. You should also see this when using the system terminal. The solution is to configure the prompt on both systems to be the same

You can also try configuring the shell that VS Code uses to ensure VS Code's integrated terminal uses the correct shell with the correct environment



来源:https://stackoverflow.com/questions/52189967/vscode-terminal-doesnt-display-folder-and-branch

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!