How to change the state of read-only files in intellij

I have a Java project and I want to change it in intellij, but I can’t do it because of this read-only file or the file is not writable , so how can I change it and execute it?

This is problem

+4
source share
2 answers

To switch a read-only attribute of a file

Open the file in the editor or select it in the Project tool window. Perform one of the following actions:

From the main menu, select File | Make File Read Only or File | Make the file available.

Click the lock icon in the status bar.

+2

IntelliJ IDEA | Writable, , , , . root ( : ls -hal /path/to/File.java)

- , - chown :

sudo chown yourusername /path/to/File.java,

yourusername - , Intellij IDEA.

+1

Source: https://habr.com/ru/post/1678179/


All Articles