How to edit javascript in HTML in Chrome Dev Tools

We can edit and release the js code from the * .js file in the Chrome Dev Sources toolbar.
If the js codes come from a * .html file, how can we edit and banish them, with the exception of adding breakpoints.
Thank.

+4
source share
2 answers

All you have to do is double-click the script icon that you are viewing on the Developer Tools tab (i.e. your * .html file). You can also right-click and select "Edit as HTML" Here is an overview for editing html in dev tools.

When you are done, you can save the changes by right-clicking and choosing Save or Save As.

Hope this helps!

+1
source

In Chrome Dev Tools, you can set up a "workspace", and when you make changes to a file, it will be saved locally and changes will also be displayed in the browser.

, Google . , , , .

: https://developers.google.com/web/tools/setup/setup-workflow

+1

Source: https://habr.com/ru/post/1673558/


All Articles