Mohannd Subbah Mohannd Subbah - 1 year ago 151
Android Question

Android studio error highlight

enter image description here

please help me remove this annoying squares ! I can't find this option anywhere :(!
Program: android studio

Answer Source

To remove the coloured squares (Also known as inspections) you either need to solve the reason Android Studio has alerted you to that piece of code with a warning/error; or disable the inspections.

To disable one off/singular inspections:

  1. Go to the part of the code which shows the warning/error
  2. Press alt + enter on keyboard
  3. Click "disable inspection"
  4. That specific inspection should disappear

To disable all inspections:

  1. Go to settings, then editor, then inspections
  2. You should see a list of all inspections, here you can edit what ones you want, and how they behave
  3. To turn off an inspection, un-check its tick-box to the right side of the list
  4. To turn off all inspections, just un-check all tick-boxes
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download