Lock and unlock files and folders
Install the Subversion plugin
This functionality relies on the Subversion plugin, which you need to install and enable.
Press Control+Alt+S to open the IDE settings and select
.Open the Marketplace tab, find the Subversion plugin, and click Install (restart the IDE if prompted).
Though Subversion integration allows you to successfully modify and merge files changed by different team members, sometimes it makes sense to lock files (for example, images) to avoid overwriting changes.
Lock a file
Select the file you want to lock in the Files tool window or open it in the editor.
Select VCS | Subversion | Lock from the main menu, or Subversion | Lock from the context menu of the selection.
Enter a lock comment in the Lock File dialog that opens.
Unlock a file
Select the file you want to unlock, or open it in the editor.
Select VCS | Subversion | Unlock from the main menu, or Subversion | Unlock from the context menu of the selection.
To forcibly break a lock set by somebody else, select the Steal Existing Lock checkbox.
Apart from locking files and folders, you can toggle their read-only attribute by using the / status bar icons or the Toggle read-only attribute of a file for details.
, or main menu commands. See