Stop Netbeans 8.1 from ignoring the `vendor` directory

Viewed 1809

For PHP projects, Netbeans 8.1 seems to always ignore the vendor directory in Git repositories, regardless of the content of any .gitignore file or the project ignore folders settings.

Is it possible to stop Netbeans 8.1 from always ignoring the vendor directory?

For instance for projects which have a vendor directory that has nothing to do with Composer or for projects where all files required to run the code should be included in the repository?

3 Answers

I've found excep ingoring in git settings you also need turn off option "Ignore vendor folder from versioning" here sceen enter image description here

As @webmak10 mentioned, you need to uncheck "ignore vendor" in PHP -> Framework -> Composer options.

Please note that restart is necessary to take into account this parameter.

Tested with netbeans 11.

Related