It’s not uncommon for my front-end workflow to go something like this:
- Work on thing.
- See that thing in an automatically refreshed browser.
- See something wrong with that thing.
- Inspect and correct the thing in DevTools.
- Apply the correct code in my code editor.
- See that correct code automatically refreshed in the browser.
I know, it’s not always great. But I’d bet the lint in my pocket you do something similar, at least every now and then.
That’s why I was drawn to the title of Chris Heilman’s post: “What if… you could use Visual Studio Code as the editor of in-browser Developer Tools?”
The idea is that VS Code can be used as the editor for DevTools and we can do it today by enabling it as an experimental feature, alongside Microsoft Edge. So, no, this is not like a prime-time ready universal thing, but watch Chris as he activates the feature, connects VS Code to DevTools, gives DevTools access to write files, then inspects the page of a local URL.
Now, those changes I make in DevTools can be synced back to VS Code, and I have direct access to open and view specific files from DevTools to see my code in context. Any changes I make in DevTools get reflected back in the VS Code files, and any changes I make in VS Code are updated live in the browser. Brilliant.
I’m not sure if this will become a thing beyond Edge but that sort of cross-over work between platforms is something that really excites me.