gpt4 book ai didi

java - Eclipse Checkstyle 禁用 "Lline has trailing spaces"

转载 作者:塔克拉玛干 更新时间:2023-11-03 03:35:53 30 4
gpt4 key购买 nike

我在 Win 7 上使用 eclipse。我也在使用 checkstyle,发现 checkstyle 提示注释中的尾随空格。

我希望在 checkstyle 中禁用此检查,而不对我的环境进行任何修改,因为我希望与办公室中的其他开发人员共享检查样式文件,以确保每个人都可以在相同的 checkstyle“light”中看到代码:)

我同意可以解决此问题的其他内置功能。我试过:Ctrl+Shift+FCtrl+Alt+C。两者都不会自动修复尾随空格。

enter image description here

最佳答案

在checkstyle中找到禁用方法:

首选项 -> CheckStyle -> Regexp -> RegexpSingleLine(禁用)

关于java - Eclipse Checkstyle 禁用 "Lline has trailing spaces",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15950671/

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