配置显示VS代码终端目录

发布于 2025-01-21 18:23:57 字数 489 浏览 3 评论 0原文

我是使用 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

enter image description here

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

洛阳烟雨空心柳 2025-01-28 18:23:57

尝试以下指定的此功能:

函数提示(){“>”}

Try this function as specified below:

function prompt( ) {">"}

谎言 2025-01-28 18:23:57

为了更详细,

打开 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".

enter image description here

enter image description here

Note: It will only work on CMD and not Powershell, for that you might have to use profiles.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文