Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Multiple .ino files and IntelliSense #1438

Open
@BrandlMax

Description

@BrandlMax

Hi everyone,

In my Arduino projects, I like to divide my scripts into several files for overview and maintainability:

Bildschirmfoto 2022-01-30 um 17 17 29

Unfortunately, IntelliSense has some trouble with these multiple files, as it does not recognize variables defined in the previous files and underlines them in red accordingly.

This problem can be fixed if I write all .ino files manually into the c_cpp_properties.json:

cpp

However, this file is automatically regenerated after each "verify" and "upload" and thus overwrites my changes in the "forcedInclude". So I then have to reinsert these lines each time.

Since this question/problem has not been asked more often, I'm pretty sure I'm missing something fundamental. Could you help me? I would be very thankful to have this frustrating workflow a little more pleasant 😅

Thank you so much,
Max

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions