R
R
Rinat Akhtamov2014-02-16 21:03:17
phpstorm
Rinat Akhtamov, 2014-02-16 21:03:17

What are the "Path Variables" settings in PhpStorm for?

For some time now PhpStorm has a "Path Variables" section in its "IDE Settings" section. From the description of this section in the documentation, I generally understood that there you can create some variables with a path value on a file system and then they are available, for example, as `$LIB_PATH$`. But I didn’t understand where and how these variables can be used, since there is no clear example. Please give an example of their use. I vaguely believe that this feature will be useful for me.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
philipto, 2014-03-03
@rinnaatt

This setting is needed for teamwork. It allows you to add a variable to the project so that each developer on his computer can determine his own value for this variable.
For example, there is a third-party library that each developer has in a directory with an arbitrary name. The project starts up PATH VARIABLE with some name that everyone agreed to use, and everyone assigns the desired value to it in their environment.
This variable is substituted in the path where you need to specify the path to the library.
Detailed documentation here: www.jetbrains.com/idea/webhelp/path-variables.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question