VS Code error squiggles

Hi,

First of all, let me confess, I am new to VS Code - NRF SDK environment.

I have a VS Code setup with NRF extensions enabled and due to some reason, the error squiggles in the VS Code highlights all the includes files and data type specifiers like uint8_t, uint16_t...

Attached the screenshot of the highlights error squiggles.

I see this on all of my program files.

The program builds fine and is working fine, no issues with that. 

Seeing so much red highlight does not look good right.

Please help me to setup environment neat so that my code also looks neat.

Thank you in advance.

  • Hi,

    Have you added the entire NCS folder to your workspace?

    regards

    Jared

  • Can you do that and rebuild your sample,

    regards

    Jared

  • Hi Jared,

    Thank you for your reply.

    I added the NCS directory to my workspace and it did not solve my issue, I can still see error highlighted.

    Attached the screenshot of the NSC dir added to workspace

    When I hover my cursor on any of the includes line, I see similar to below error description.

    When checking further I see we can configure IntelliSense and paths.

    May I know how to configure IntelliSense?

    Where can I find the compiler path?

    Do I need to include any paths CMAKE/any extensions setting?

  • Hi,

    On a second look, I see that mine is like this as well. I think the workaround is to disable IntelliSense. 

    regards

    Jared 

1 2