Autocomplete path relative to resource root

I have the following file structure:

root/
somefile
dist/
src
/
img/
image.jpg includes
/ header.html index.html

src folder is set as a resource root. When I try to autocomplete <img> tag "src" attribute inside header.html using ctrl+spacebar — it inserts path relative to header.html (../img/image.jpg). Is it possible to somehow make webstorm to autocomplete path relative to src folder (resource root) instead (like so: img/image.jpg)?

3 comments

just type "img" and hit ctrl+space - path will be completed relative to resource root

 

1

Thanks! Is there a chance to get in the future a setting which will allow autocompletion relative to the closest resource root when pressing 2 times "Ctrl + space" within an empty attribute?

0

Please sign in to leave a comment.