我是 Android Studio 的新手,我有一个问题,在 Android Studio 中,当我遇到语法错误或类似错误时,Android Studio 不会像 Eclipse 那样在行首显示任何指示符,它只在面包屑路径中显示一条红色波浪线,它也以红色突出显示错误,但这有点难以检测,无论如何我可以像在 Eclipse 中那样启用该功能。任何帮助深表感谢。感谢您的宝贵时间和回复。
最佳答案
Android Studio (IntellJ) 在编辑器窗口右侧的 Validation side bar
中显示错误(和其他文件信息,例如更改)。该区域代表整个文件,不同颜色的标记显示在该区域以显示这些项目在文件中的位置。您也可以在该区域内单击以直接进入该区域,或者您可以将指针悬停在该区域上,弹出窗口将显示该区域的代码。
有关详细信息,请参阅 IntellJ documentation
以下是网站的相关信息:
5. Validation side bar / marker bar
This is the bar to the right from the editing area, showing the green, red or yellow box on its top depending on whether your code is okay, or contains errors or warnings. This bar also displays active red, yellow, white, green and blue navigation stripes that let you jump exactly to the erroneous code, changed lines, search results, or TODO items.
关于android - Android Studio 中的错误检测,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26228486/