While automating some parts of my development workflow, I was wondering if there was a way of opening a browser with DevTools open by default. This would save me a few clicks and small tweaks like this are always helpful.
And it turns out that it is possible! All I needed was a command-line flag to be passed in when opening Google Chrome. The flag to be passed is --auto-open-devtools-for-tabs
and can be passed as:
/Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Canary --auto-open-devtools-for-tabs https://wisdomgeek.com
BashThe –auto-open-devtools flag opens the browser tab for the URL with the DevTools open. Having the devtools open up by default can be handy for many things, including setting up your web development workflows!
While working on a project, I wanted to do an integrity check of a file…
Popovers have been a problem that was typically solved by using a third-party solution. But…
Node.js 20.6 added built-in support for the .env file. This is an excellent addition to the platform…
Object destructuring is a powerful ES 6 feature that can help developers write cleaner code.…
Have you felt particularly annoyed by the time it takes to clone a large repository,…
Within a React or Next.js app, if you encounter the error "Hydration failed because the…