How Can I Remove The Red Squiggly Lines From My Code? (It's Working Perfectly) - IntelliJ IDEA

2,306

I think I found a solution to this.

It seems that some of the plug-ins already installed are conflicting with dart and thereby, showing the code as red even when no error is there or even if all SDK are properly set-up.

For me, turning off 'Deadalus support' plugin and restarting and invalidating cache worked. For some others, it was the github plugin. So, give it a shot and see which one is causing the red code for you.

Share:
2,306
Akim John
Author by

Akim John

Sometimes, I get really, really creative.

Updated on December 06, 2022

Comments

  • Akim John
    Akim John over 1 year

    Screenshot of my issue(Red Squiggly lines in my dart code)

    Screenshot of my issue(Red Squiggly lines in my dart code)

    • y.bedrov
      y.bedrov over 5 years
      Have you tried "File | Invalidate Caches"?
    • Akim John
      Akim John over 5 years
      I have. It's still there
    • Alexander Doroshko
      Alexander Doroshko over 5 years
      What are the error messages? You may open Dart Analysis tool window to see them all.
    • Akim John
      Akim John over 5 years
      There aren't any error messages
    • Alexander Doroshko
      Alexander Doroshko over 5 years
      Could you accidentally mess up your code highlighting settings? Try to open Settings | Editor | Color Scheme and switch scheme to Darcula.
  • Akim John
    Akim John over 5 years
    I have imported everything. The code is working perfectly. The squiggly lines are just distracting.