C
C
Cat Anton2015-01-27 12:40:26
phpstorm
Cat Anton, 2015-01-27 12:40:26

How can you protect a folder from accidental changes?

When working with a framework, you often have to dig into its sources, for example, redefining the next class or debugging a project. As a result, several very similar files may be opened in the IDE, both in name (MyNamespace\Example\SomeClass and Framework\Example\SomeClass) and in content. Moreover, in the names of the tabs, the names of the files do not fit entirely and there are several identical "SomeClass". As a result, you start editing the file, and after a while you notice that you are editing the framework code. You begin to carefully transfer all the changes made to where they should have been. And if you forget to remove something from an accidentally edited framework file, it can backfire when you already forget about this incident.
The question is how to protect a folder from accidental changes in phpStorm?
PS: The folder with third-party libraries is specified in .gitignore, i.e. I won’t see random changes with the git.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vapaamies, 2015-01-27
@27cm

And if you just try to mark files as read-only and forbid saving such files in the editor?

I
index0h, 2015-01-27
@index0h

What's the problem then? delete vendor, do `composer install -o` and everyone is happy))
You can do it on vendor: Mark as > Excluded, but this will not save you from going through classes / methods.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question