A
A
Anton P.2018-10-04 16:07:32
phpstorm
Anton P., 2018-10-04 16:07:32

How to change Site Root "/" in phpstorm?

I have a project like this:

/
tmp/
cache/
www/
    css/
    js/
    img/
        ava.png
    index.html

I right-click on the ava.png file , select Copy Relative Path to copy the path of the file from the root.
But here's the problem, the line gets into the clipboard: www /img/ava.png.
www here is clearly superfluous.
This happens, as I understand it, because the root of the project is "site" and the root of the project in phpstorm is one and the same. But in fact it is not.
How to make phpstorm think that the site does not start with "/", but with "/www/
" I also need files and folders that are nearby
PS: I used Google, without results

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2021-11-08
@Alexander33S

Although a lot of time has passed, but still I will answer, suddenly it will help someone:
Right-click on www and select Mark Directory as -> Sources root

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question