2015-09-20 49 views
8

我想忽略Android Studio中特定文件的拼寫檢查警告。我已經嘗試過了,但是這似乎等同於SuppressLint而不是SuppressWarning。 http://developer.android.com/tools/debugging/improving-w-lint.html在Android Studio中忽略特定文件的拼寫警告

這裏的東西像什麼,我想要做的

<?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> 

任何想法的例子嗎?你想在文件禁用

+0

已經有一個問題在這裏:https://stackoverflow.com/a/31947638/905686 – user905686

回答

-3

瞭解Android Studio,取消選中的選項>>設置>>編輯>>檢查>>拼寫>>錯字

+3

我特別說「僅限特定文件」。這將禁用整個工作區的Typo。 –