Boring "Sketch is Read-Only" dialog.

I mean this:

This feature protect the examples quite well, but when developing arduino library, this feature benefit nothing except waste my time.
Does anybody know how to disable this feature of Arduino IDE?

arduino-read-only.jpg

If you're working off of the Sample sketches, that's what is supposed to happen. That's so that you don't accidentally "break" the example and later can't figure out what happened. You should be saving your own modified sketches elsewhere anyway. Try My Documents/Arduino for a change ...

It is a function of the access rights on the file. If you want to over ride it, which is a bad idea, then edit the permissions attributes of the file and folder you want to mangle.
It has nothing to do with the arduino IDE.

KirAsh4:
If you're working off of the Sample sketches, that's what is supposed to happen. That's so that you don't accidentally "break" the example and later can't figure out what happened. You should be saving your own modified sketches elsewhere anyway. Try My Documents/Arduino for a change ...

Thank you KirAsh4.
I hope there may be some "hack" ways to solve my problem.

Grumpy_Mike:
It is a function of the access rights on the file. If you want to over ride it, which is a bad idea, then edit the permissions attributes of the file and folder you want to mangle.
It has nothing to do with the arduino IDE.

Thank you Mike for your reply.
I'm sure this is not the access right thing. Arduino IDE intent to do this for protecting library examples.

I'm sure this is not the access right thing.

Have you tried it.
It was for me when I was writing some libaries.

In 1.5.2 they are not marked read-only, but it does stop you saving in the IDE.
EDIT: the folder is marked read-only.

Load the example and do a Save As
That protects the original and gives you your own version to work with

You can remove the read only attribute of the examples folder if you like, but as has been pointed out you then risk changing the example programs.

gaplee:
This feature protect the examples quite well, but when developing arduino library, this feature benefit nothing except waste my time.

It saves you corrupting your examples, so next time they don't work. So it does in fact do something.

... but when developing arduino library ...

I just use an external editor when developing a library. Saves those annoying messages. :slight_smile: