i put the code like this to see the picture in preview in visual studio code :
<a href="https://media.wired.com/photos/598e35fb99d76447c4eb1f28/master/pass/phonepicutres-TA.jpg"</a>
and received the error like this:
Previewing a file that is not a child of the server root. To see fully
correct relative file links, please open a workspace at the project
root or consider changing your server root settings for Live Preview.
What am I doing wrong?
<a href="https://media.wired.com/photos/598e35fb99d76447c4eb1f28/master/pass/phonepicutres-TA.jpg"</a>
2
Answers
Hope You’re doing well
It might be your extension problem. So Press (Ctrl + P) in VS Code and paste below command. it would be fixed.
ext install kisstkondoros.vscode-gutter-preview
Because maybe you are using an anchor tag without specifying an tag to actually show the image. The error message you’re receiving might be related to how the preview functionality in Visual Studio Code is interpreting your code.