gpt4 book ai didi

version-control - Visual Studio Code - 按文件夹对挂起的更改进行分组

转载 作者:行者123 更新时间:2023-12-04 07:03:17 25 4
gpt4 key购买 nike

由于某些受支持的扩展,我想摆脱我当前的 IDE (Jetbrains) 并迁移到 Visual Studio Code。

我在 VS Code 中只缺少一件事......

如果我在源代码管理中有多个文件作为挂起的更改,它们只会显示为一个平面列表。在例如IntelliJ 可以按文件夹对挂起的更改文件进行分组。
这非常有用,因为我有多个文件共享相同的文件名...

是否有扩展,我可以安装以添加此功能还是只是一个配置,我还没有找到?

最佳答案

我在 Insiders Build 1.47 中看到了这些界面变化:
scm tree/list viewstree/list选项已从外部 Source Control 中删除标题栏现在位于省略号(三个点)下方 - 如果您选择 list,还有其他选项:path , name , status .以及 tree您正在寻找的 View 。

正如@jabacchetta 预测的那样,此功能已添加到 v1.39 - 用于支持它的 scm 提供商,例如 git。见 https://github.com/microsoft/vscode-docs/blob/vnext/release-notes/v1_39.md#updated-source-control-view .并查看@jabacchetta 答案中的链接。源代码管理中的树 View 。
像往常一样,您可以通过单击文件夹或向左/向右箭头来打开/关闭文件夹。来自 Insider's Build 的演示:
source control tree view
从发行说明:

Updated Source Control view

The Source Control view has been updated to use the latest treewidget. You can now toggle between a list and a tree view with theToggle View Mode button on the Source Control title bar.


Toggle SCM View mode button

You can change the default view using the scm.defaultViewMode setting,which takes the values list or tree.

You also now benefit from the automatic keyboard navigation andfiltering of the updated tree widget by simply starting to type in theview.


scm tree view actions

When in tree view mode, which displays folders, the Git extension nowcontributes commands to folders, for example Stage Changes, which willbe applied to all files within a folder.

关于version-control - Visual Studio Code - 按文件夹对挂起的更改进行分组,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51476096/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com