Mohannd Subbah
Mohannd Subbah

Reputation: 33

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

Upvotes: 1

Views: 3657

Answers (1)

Tom James
Tom James

Reputation: 279

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

Upvotes: 5

Related Questions