htmlcssvisual-studio-codebrackets

How to highlight section in VScode live server when clicking my source code?


Question

The editor brackets can do that. Supposed that, when I click my html tag in my source code file, the browser would automatically highlight the section/div in the broswer like google chrome developer tools.

Step 1

Click my tag in my source code file

enter image description hdere

Step 2

the live server will automatically focus on the section I want

enter image description here

How could I make it in VSCode?


Solution

  • VS Code does not have a built-in live server. Whatever extension you are using for live server can implement this, however I am not aware of any ones that do currently. Consider filing a feature request against them for this