arduino / arduino-ide

Arduino IDE 2.x
https://www.arduino.cc/en/software
GNU Affero General Public License v3.0
2.31k stars 391 forks source link

Add setting to disable "Problems" visibility in editor #335

Closed wachidsusilo closed 3 months ago

wachidsusilo commented 3 years ago

Describe the request

Please add a setting that allows the user to control whether the editor displays "squiggles" for "Problems" diagnostics.

Describe the current behavior

I'm starting to write my ESP32 project and 'curly red underline' is everywhere although it's compiled fine. It makes my code hard to read.

Additional context

Related

per1234 commented 3 months ago

Thanks for your suggestion @wachidsusilo. The requested setting was added in https://github.com/arduino/arduino-ide/pull/1811. It disables the display of squiggles for "Problems" in the editor view by default.

For the reference of anyone who does want to enable the display of these squiggles, I'll provide instructions you can follow to do this by adjusting Arduino IDE's advanced settings:

  1. Press the Ctrl+Shift+P keyboard shortcut (Command+Shift+P for macOS users) to open the "Command Palette". A menu will appear on the editor toolbar: Command Palette
  2. Select the "Preferences: Open Settings (UI)" command from the menu. You can scroll down through the list of commands to find it or type the name in the field. A "Preferences" tab will open in the Arduino IDE main panel.
  3. Type arduino.language.realTimeDiagnostics in the "Search Settings" field of the "Preferences" tab.
  4. Check the box under the "Arduino › Language: Real Time Diagnostics" setting.
  5. Close the Preferences tab by clicking its X icon.