Ignore whitespace in Visual Studio Code git diff view

前端 未结 2 1545
误落风尘
误落风尘 2021-02-03 17:06

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 ad

相关标签:
2条回答
  • 2021-02-03 17:49

    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

    0 讨论(0)
  • 2021-02-03 17:55

    Is a new feature now. Add on your setting.json:

    "diffEditor.ignoreTrimWhitespace": true,
    
    0 讨论(0)
提交回复
热议问题