在Vscode中显示Git Worktree名称名称
因此,我最近开始使用Git工作室,它们是神奇的。
但是,当与Visual Studio代码一起使用时,您将在顶部显示当前的分支名称(my_branch
),因此当您打开超过1个项目时(在我的情况下,我有4个不同的项目交互彼此之间)具有相同的分支名称,您会感到困惑,并且必须浏览文件以了解您打开的项目。
有什么方法可以显示2个文件夹名称,例如my_project.git/my_branch
?
So I've recently started using git worktrees and they are magical.
But when using with Visual Studio Code, you will have the current branch name shown on the top (my_branch
), so when you've opened more than 1 project (in my case I have 4 different projects interacting with each other) with the same branch name, you would get confused and have to browse the files to know which project you've opened.
is there a way I can show 2 levels of folder names, like my_project.git/my_branch
?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Visual Studio代码的窗口标题可以如下编辑:
settings.json ,在工作区或用户范围
“ window.title”:“ $ {rootpath} $ {sapeator} $ {activeedeDitormedium}”
并保存文件。这将导致一个相当长的标题,但是Afaik没有一个很好的方法可以将父文件夹的名称仅能进入标题。标题中的可用变量是(从vscode复制):
The window title of Visual Studio Code can be edited as follows:
settings.json
, in either workspace or user scope"window.title": "${rootPath}${separator}${activeEditorMedium}"
and save the file. This will result in a rather long title, but AFAIK there is no pretty way to get just the parent folder's name into the title.Available variables in the title are (copied from VSCode):