gpt4 book ai didi

android - 忽略 Android Studio 中特定文件的拼写警告

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:46:07 24 4
gpt4 key购买 nike

我只想在 Android Studio 中忽略特定文件的拼写检查警告。我已经试过了,但这似乎等同于 SuppressLint 而不是 SuppressWarning。 http://developer.android.com/tools/debugging/improving-w-lint.html

这是我想做的事情的例子

<?xml version="1.0" encoding="utf-8"?>
<lint>
<issue id="SpellCheckingInspection" severity="typo">
<ignore path="app/src/main/res/values/local_values.xml" />
<ignore path="app/src/main/res/values/strings.xml" />
<ignore path="app/src/main/AndroidManifest.xml" />
</issue>
</lint>

有什么想法吗?

最佳答案

您可以阻止对如下评论的 lint 检查;

enter image description here

click the yellow lamp and go to

“打字错误:更改为...” -> “编辑检查配置文件设置”

and Inspections window will open like below;

enter image description here

then uncheck the "Process comments" option and press OK button.

完成这些步骤后,拼写错误下划线和拼写错误警告将消失。

关于android - 忽略 Android Studio 中特定文件的拼写警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32676380/

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