Community
    • 登入

    How do I edit read-only files?

    已排程 已置頂 已鎖定 已移動 General Discussion
    7 貼文 4 Posters 34.0k 瀏覽
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • Pavel PP
      Pavel P
      最後由 編輯

      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 條回覆 最後回覆 回覆 引用 1
      • Scott SumnerS
        Scott Sumner
        最後由 編輯

        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 條回覆 最後回覆 回覆 引用 2
        • Scott SumnerS
          Scott Sumner
          最後由 編輯

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

          1 條回覆 最後回覆 回覆 引用 0
          • Thunder TT
            Thunder T
            最後由 編輯

            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 條回覆 最後回覆 回覆 引用 0
            • PeterJonesP
              PeterJones
              最後由 編輯

              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 條回覆 最後回覆 回覆 引用 0
              • Pavel PP
                Pavel P
                最後由 編輯

                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 條回覆 最後回覆 回覆 引用 -1
                • Scott SumnerS
                  Scott Sumner @Pavel P
                  最後由 編輯

                  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 條回覆 最後回覆 回覆 引用 0
                  • 第一個貼文
                    最後的貼文
                  The Community of users of the Notepad++ text editor.
                  Powered by NodeBB | Contributors