问题
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