Community
    • Login

    How do I edit read-only files?

    Scheduled Pinned Locked Moved General Discussion
    7 Posts 4 Posters 38.1k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Pavel PP Offline
      Pavel P
      last edited by

      I’m pretty sure that with some old version I was able to edit read-only files and when I saved them it would automatically clear read-only flag and modify the file for me. Am I correct that previously it was like that? If so, what version was the one that worked properly. Personally I won’t use notepad++ because I totally hate to manually click some weird menus to clear read-only flag.

      1 Reply Last reply Reply Quote 1
      • Scott SumnerS Offline
        Scott Sumner
        last edited by

        If you won’t use Notepad++ then why are you bothering to ask this question? Or more importantly, why am I bothering to respond? :)

        It is really buried deep in a totally weird menu: If you right-click on the TAB for the read-only document, and select “Clear Read-only Flag”…it clears the read-only attribute.

        1 Reply Last reply Reply Quote 2
        • Scott SumnerS Offline
          Scott Sumner
          last edited by

          It is also buried DEEP in the first level of the Edit menu.

          1 Reply Last reply Reply Quote 0
          • Thunder TT Offline
            Thunder T
            last edited by

            I wasn’t aware of this hidden feature for clearing the flag, so I used other workarounds to deal with this problem. I think Notepad++ should show a warning dialog when you try to edit a read-only file, to indicate that the file is in read-only mode and it should show how to clear the flag / or it should display the dialog box upon opening the file.

            1 Reply Last reply Reply Quote 0
            • PeterJonesP Offline
              PeterJones
              last edited by

              It does flag you: look at the disk icon on each tab:

              • Opened the File as Read Only → Grey Icon:
              • Edit > Clear Read-Only Flag → Blue Icon:
              • Make a change to the file → Red Icon:
              1 Reply Last reply Reply Quote 0
              • Pavel PP Offline
                Pavel P
                last edited by

                I know that there is that ridiculously useless “clear read-only flag” menu item. I’m saying that I’m pretty sure with old version of notepad++ it would just show message box asking you to save “read only file” and you say “yes” or “no” to force it.
                I might be wrong that notepad++ had it, but pretty much all editors simply allow you to edit files and when you try to save the stop you from saving and ask if you really want to overwrite readonly file. It so freaking ridiculously bad that notepad++ doesn’t allow you to edit file in the first place. Freaks me out. I might be wrong, but I’ve never experienced that shitty behavior, could it be that it was added in some recent version?

                Scott SumnerS 1 Reply Last reply Reply Quote -1
                • Scott SumnerS Offline
                  Scott Sumner @Pavel P
                  last edited by

                  For the benefit of other readers that this behavior might annoy (perhaps less than it annoys Pavel P), a possible improvement idea may be found here:

                  https://notepad-plus-plus.org/community/topic/12077/opening-read-only-files

                  1 Reply Last reply Reply Quote 0

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  • First post
                    Last post
                  The Community of users of the Notepad++ text editor.
                  Powered by NodeBB | Contributors