Visual Studio代码:隐藏的.git文件夹/文件

编程入门 行业动态 更新时间:2024-10-25 16:25:17
本文介绍了Visual Studio代码:隐藏的.git文件夹/文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我现在正在尝试Visual Studio Code.关于Visual Studio Code的所有内容对我来说都很酷,只有一件事: .git文件夹/文件被隐藏在Visual Studio Code中.

I am trying Visual Studio Code at this moment. Everything about Visual Studio Code look really cool to me except one thing: .git folder/file is hidden in Visual Studio Code.

我经常通过修改.git配置文件来更改Git设置.无法看到.git文件对我来说真的很烦.

I often change Git setting by modifying the .git configuration file. It is really annoying for me not able to see .git files.

有没有办法在Visual Studio Code中显示.git文件?

Is there a way to reveal .git files in Visual Studio Code?

推荐答案

默认情况下,Visual Studio Code使用以下设置排除文件夹中的文件:

By default Visual Studio Code excludes files in a folder using the following settings:

"files.exclude": { "**/.git": true, "**/.svn": true, "**/.hg": true, "**/.DS_Store": true }

您可以通过添加以下行来更改用户设置或工作区设置以显示.git文件夹:

You can change your user settings or workspace settings to show the .git folder by adding these lines:

"files.exclude": { "**/.git": false }

更多推荐

Visual Studio代码:隐藏的.git文件夹/文件

本文发布于:2023-11-16 19:56:18,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1607245.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文件夹   代码   文件   Visual   Studio

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!