配置显示VS代码终端目录
我是使用
Visual Studio Code
作为iDE
对代码,然后我遇到了一个问题。
在终端
上,路径,工作目录显示的时间太长。
像这样
我想更改ps c:\ users \ lenovo \ desktop \ github \ github \ onboard-something \ onboard-java-mysql>
shore short short short short short like >
我该怎么做?
非常感谢你们。
I was using
the Visual Studio Code
as an IDE
to code and then I met a problem.
On the terminal
, the path, the working directory was displayed too long.
Like this
I want to change the PS C:\Users\LENOVO\Desktop\Github\onboard-something\onboard-java-mysql>
to something shorter like >
How can I do that ?
Thank you guys very much.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试以下指定的此功能:
函数提示(){“>”}
Try this function as specified below:
function prompt( ) {">"}
为了更详细,
打开 vscode - > 新终端 - >如果弹出 - >打开一个新的CMD窗口 - >现在只是粘贴“提示$ g” 。
Just to be more detailed,
Open up VSCode -> New Terminal -> Close the PowerShell if poped up -> Open a new cmd window -> now just paste "prompt $g".
Note: It will only work on CMD and not Powershell, for that you might have to use profiles.