3 comments

If you have Settings/Preferences | Languages & Frameworks | PHP | Composer | Add packages as libraries, packages inside vendor should be marked as Library roots and be protected automatically.

You also can achieve that effect manually:

  1. Exclude the vendor directory at Settings/Prefrences | Directories.
  2. Add it to Settings/Preferences | Languages & Frameworks | PHP | PHP Include.
0

It only hides the files.
I want to see them but they will be protected from editing.

0

No. It notifies you that you are trying to edit the protected file.

Plus, such files have different background color, which you can change to make more obvious/standing out.

P.S. Try applying Read-Only attribute to them then (no ideas about Mac/Linux, but on Windows that works well).

0

Please sign in to leave a comment.