How to Change Read-Only Status of Files in intellij

前端 未结 7 1887
日久生厌
日久生厌 2021-02-06 22:17

I have a Java project and I want to modify it in intellij but I can\'t do it because of this \" read-only file \" or \"file is not writable\"

相关标签:
7条回答
  • 2021-02-06 22:47

    On your top-left corner in the drop-down where you have Tests,Production,Problems switch/choose from Project or any other directory you've choosen to Packages, you'll have your packages editable, files in the Project folder are not editable although they end with .class extension.

    0 讨论(0)
  • 2021-02-06 22:49

    To toggle read-only attribute of a file, open file in the editor, or select it in the Project tool window. Do one of the following:

    • On the main menu, choose File | File Properties | Make File Read-Only, or Make File Writable.

    • Click the lock icon in the Status bar in the bottom right corner.

    0 讨论(0)
  • 2021-02-06 22:50

    For Mac, it definitely works:

    sudo chmod -R 777 /YourDirectory

    0 讨论(0)
  • 2021-02-06 22:58

    This error appears when the other user has created those files.
    1. Right click on the file or folder to be deleted.
    2. Choose reveal in folder option.
    3. Delete the file and enter the password.
    4. Files will be deleted.

    0 讨论(0)
  • 2021-02-06 22:59

    I was just having this issue and I finally figured out where I was going wrong.

    Over an hour of suggestions from Google didn't help. It turns out I was on files selected in the -out > production > MyPath folder instead of the -src folder in my project sidebar. Selecting the -scr > MyClass file allows me to do what I want to do.

    0 讨论(0)
  • 2021-02-06 23:01

    If you're using Mac. Follow bellow steps:

    1. Open that file by Finder
    2. Right click and select Get Info
    3. In that File Info window, select Sharing and Permissions, change Privilege as you expected. Before changing, you would remember unlocking your change permission by click on a Locker Icon at bottom right.

    0 讨论(0)
提交回复
热议问题