2

I have various subdirectories in {SKETCHBOOK}/hardware/ and {SKETCHBOOK}/libraries/ that contain an examples/ subdirectory. These examples are showing up in File | Sketchbook | hardware and File | Sketchbook | libraries. Is there any way I can prevent them from showing up in that menu without moving them under the system-level Arduino directory?

1 Answer 1

0

Looking at the code it is scanning all folders and there is no option to change that behavior. Also looking at the code, it looks like it dumps them into a sub-menu, hiding them away a little further, if the folder is named anything except "examples", which could be an alternative option for you.

The final option would be to fork your own version and come up with some exclusion logic, maybe with some kind of ".ignore" kind of logic where you can specify folders to exclude form the menu.

1
  • Interesting. I think that the proper fix would be to modify Base.addSketches(JMenu, File) to skip "important" directories, since there shouldn't be user sketches in there regardless. But thank you for pointing this out, Jul 21, 2015 at 20:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.