Using Live Server with Developer Tools in Visual Studio Code

By using the Edge DevTools extension together with Live server in VS Code you don’t only get a server that shows your changes live in the browser, but a browser and developer tools right in the editor The Live Server extension for Visual Studio code has been installed 25M times and is incredibly useful. It […]


This content originally appeared on Christian Heilmann and was authored by Chris Heilmann

By using the Edge DevTools extension together with Live server in VS Code you don’t only get a server that shows your changes live in the browser, but a browser and developer tools right in the editor

The Live Server extension for Visual Studio code has been installed 25M times and is incredibly useful. It enables you to right-click an HTML document, and it runs a server for you and opens a browser window with the file in it. Any changes you make to the file causes the browser to reload and you can immediately see them – hence “live server”.

The problem is that you still have to jump in between the editor and the browser if you want to debug the project using the browser developer tools.

If you use the Edge DevTools for VS Code in addition to live server, you don’t have that problem. Instead you can:

  • Get a live preview of changes to the file in a browser window right inside VS Code
  • Use the browser developer tools and automatically sync the changes with your source files
  • Get information about issues in your code and how to fix them
  • Get a Console to try out JavaScript or see your `console.log()` messages right in VS Code

You can see this in action in the following video:

The process is not quite straight forward yet, but we’re working on it.

  • Right-click the file you want to open and choose “Open with live server”
  • Copy the location from the URL bar of the browser tab that Live server opened
  • Go back to VS Code and right-click the same file, this time choosing “Open with Edge” and either “Open Browser” or “Open browser with DevTools”
  • In the browser panel that opens, paste the URL from earlier
  • … and that’s it.

What could be done to make that easier? You can chime in on this issue on GitHub to give us some ideas .


This content originally appeared on Christian Heilmann and was authored by Chris Heilmann


Print Share Comment Cite Upload Translate Updates
APA

Chris Heilmann | Sciencx (2022-11-22T20:52:57+00:00) Using Live Server with Developer Tools in Visual Studio Code. Retrieved from https://www.scien.cx/2022/11/22/using-live-server-with-developer-tools-in-visual-studio-code/

MLA
" » Using Live Server with Developer Tools in Visual Studio Code." Chris Heilmann | Sciencx - Tuesday November 22, 2022, https://www.scien.cx/2022/11/22/using-live-server-with-developer-tools-in-visual-studio-code/
HARVARD
Chris Heilmann | Sciencx Tuesday November 22, 2022 » Using Live Server with Developer Tools in Visual Studio Code., viewed ,<https://www.scien.cx/2022/11/22/using-live-server-with-developer-tools-in-visual-studio-code/>
VANCOUVER
Chris Heilmann | Sciencx - » Using Live Server with Developer Tools in Visual Studio Code. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/11/22/using-live-server-with-developer-tools-in-visual-studio-code/
CHICAGO
" » Using Live Server with Developer Tools in Visual Studio Code." Chris Heilmann | Sciencx - Accessed . https://www.scien.cx/2022/11/22/using-live-server-with-developer-tools-in-visual-studio-code/
IEEE
" » Using Live Server with Developer Tools in Visual Studio Code." Chris Heilmann | Sciencx [Online]. Available: https://www.scien.cx/2022/11/22/using-live-server-with-developer-tools-in-visual-studio-code/. [Accessed: ]
rf:citation
» Using Live Server with Developer Tools in Visual Studio Code | Chris Heilmann | Sciencx | https://www.scien.cx/2022/11/22/using-live-server-with-developer-tools-in-visual-studio-code/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.