忽略Visual Studio Code git diff视图中的空格 [英] Ignore whitespace in Visual Studio Code git diff view

查看:637
本文介绍了忽略Visual Studio Code git diff视图中的空格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Visual Studio Code中查看文件(由GIT生成)的代码差异时,是否可以忽略空格?这对于在提交之前检查实际的代码添加/删除非常有帮助.

Is it possible to ignore white-space when viewing code differences of a file (generated by GIT) in Visual Studio Code? That will be really helpful in checking for actual code additions/deletions before committing.

推荐答案

我认为OP要求忽略所有空格(包括单词之间),而不仅仅是尾随空格.
不幸的是,它仍未实现,您可以在此处跟踪过程状态: https://github.com/Microsoft/vscode/issues/43026

I believe OP is asking to ignore all whitespaces (including between words) not just trailing whitespaces.
Unfortunately, it's still not implemented and you can track the process status here: https://github.com/Microsoft/vscode/issues/43026

这篇关于忽略Visual Studio Code git diff视图中的空格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆