How to successfully edit readonly file in VS? In order to make VS can edit readonly file, you need to make sure below two options in VS->Tool->Options: