Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arduino IDE should recognize and apply settings found in preferences.txt in sketch folders #7324

Closed
RichardBronosky opened this issue Mar 15, 2018 · 3 comments
Assignees
Labels
Component: IDE The Arduino IDE feature request A request to make an enhancement (not a bug fix)

Comments

@RichardBronosky
Copy link

The settings found in the preferences.txtfile located at the default locations should be the defaults and the subset of settings found in $(dirname $CURRENT_INO_FILE)/preferences.txt should override those values.

Most people don't use a single board. It's way too easy to brick a board when jumping around from one to another. There are so many unique developer workflows out there that we really need to recognize and support them.

There are countless issues created and closed proposing similar features (though most of them suggested using comments in the *.ino file). There is a large demonstrated need for this. No onw has proposed it in an acceptable way. Let's do that here.

A few things we have to decide are:

  • What to do about making settings changes via the menus?
  • What to do about Arduino IDE's "save preferences on close" behavior?
@lmihalkovic
Copy link

what about the case of having the same code run on multiple board types?! (a real use case for me now)

@per1234 per1234 added the feature request A request to make an enhancement (not a bug fix) label Oct 5, 2020
@qbolsee
Copy link

qbolsee commented Jan 19, 2021

This feature would be really helpful. I like the idea of a preferences.txt with the same structure as Arduino's preferences.txt, but a .json file might be more elegant. In any case, this file should be automatically created in the sketch folder and be updated every time the board settings are changed.

If the file is missing or contains nonsense, no problem, we can fallback to the current behavior.

I'm willing to help implement this, anyone else?

@per1234 per1234 self-assigned this May 20, 2024
@per1234 per1234 added the Component: IDE The Arduino IDE label May 20, 2024
@per1234
Copy link
Collaborator

per1234 commented May 20, 2024

Closing as duplicate of arduino/arduino-ide#2438

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: IDE The Arduino IDE feature request A request to make an enhancement (not a bug fix)
Projects
None yet
Development

No branches or pull requests

4 participants