Skip to content

Added Preferences option for automatic sketch name sanitization#2896

Open
donatali wants to merge 2 commits into
arduino:mainfrom
donatali:issue2866
Open

Added Preferences option for automatic sketch name sanitization#2896
donatali wants to merge 2 commits into
arduino:mainfrom
donatali:issue2866

Conversation

@donatali
Copy link
Copy Markdown

@donatali donatali commented Apr 21, 2026

Motivation

Adding back a convenient feature that the community seemed to like.

Change description

Implemented checkbox in Preferences to toggle automatic sketch name sanitization. Made use of toValidSketchName (already written) sanitize sketch names.
- True: All invalid characters are replaced with _. Pop up message notifies user.
- False: Reminds the user of correct naming format and prompts to rename sketch.

Resolves (#2866)

Implemented existing toValidSketchName function to automatically sanitize invalid sketch names. Added checkbox in
Preferences to toggle automatic santization.
    - True: All invalid characters are replaced with _. Pop up message notifies user.
    - False: Previous behavior of reminding the user of correct naming format and prompting to rename sketch.

Resolves arduino#2866 (arduino#2866)
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Apr 21, 2026

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants