gitignore的自动排除

gitignore的自动排除

本文介绍了Visual Studio代码-基于.gitignore的自动排除的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望VSCode根据我的.gitignore配置自动排除文件/文件夹.

I'd like VSCode to automatically exclude files/folders based on my .gitignore configuration.

对于排除浏览器,我找到了扩展名(explorer-excluded-files,用于管理files.exclude设置),但是对于快速打开的文件(cmd + p),我什么都没找到.

For the explorer exclusion I've found an extension (explorer-excluded-files which manages the files.exclude setting), but for the quick open file (cmd + p) I didn't find anything.

我想我可以尝试调整其他*.exclude设置,但是我想知道为什么没有一种全局方法来排除所有相关位置中的.gitignore条目吗?否则,每次.gitignore更改时,我都必须手动同步设置.

I guess I can try and tweak other *.exclude settings but I wonder why isn't there a global method to exclude .gitignore entries in all relevant places? Otherwise I have to manually sync the settings every time .gitignore changes.

推荐答案

关于资源管理器,除了找到的现有插件外,还有一个请求正在进行中: Microsoft/vscode问题38878

Regarding the explorer, in addition of the existing plugin you have found, there is a request in progress: Microsoft/vscode issue 38878

但是关于快速打开,问题41495 包含以下注释:

But regarding Quick Open, issue 41495 includes the comment:

那么,您是否正在使用设置()(当前版本为VSCode,当前版本为VSCode)?

So are you using (with a current 2018 version of VSCode) the setting search.useIgnoreFiles?

这篇关于Visual Studio代码-基于.gitignore的自动排除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 15:20