TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Using Code Snippets in Chrome Developer Tools

158 pointsby akras14almost 9 years ago

12 comments

kyriakosalmost 9 years ago
In the 80s home computers shipped with a programming language as their OS (BASIC language to be precise) - today the browser dev tools are the closest equivalent. You can use them on any PC with no additional software - wished it was made more obvious so everyone could experiment with programming like those of us who got their first computer experience 25-30 years ago could do.
评论 #12192140 未加载
评论 #12191928 未加载
评论 #12192475 未加载
评论 #12193310 未加载
评论 #12193557 未加载
评论 #12191817 未加载
acangianoalmost 9 years ago
Speaking of text editors within browser dev tools, I like Scratchpad quite a bit. <a href="https:&#x2F;&#x2F;developer.mozilla.org&#x2F;en-US&#x2F;docs&#x2F;Tools&#x2F;Scratchpad" rel="nofollow">https:&#x2F;&#x2F;developer.mozilla.org&#x2F;en-US&#x2F;docs&#x2F;Tools&#x2F;Scratchpad</a><p>It&#x27;s built-in in Firefox, but can be installed on Chrome as well.
twicalmost 9 years ago
Pretty cool. But surely not a patch on Firefox&#x27;s built-in JavaScript editor, which has autocomplete and inline documentation:<p><a href="https:&#x2F;&#x2F;developer.mozilla.org&#x2F;en-US&#x2F;docs&#x2F;Tools&#x2F;Scratchpad" rel="nofollow">https:&#x2F;&#x2F;developer.mozilla.org&#x2F;en-US&#x2F;docs&#x2F;Tools&#x2F;Scratchpad</a><p>That said, something missing from both is an easy way to import and export the code.
评论 #12192696 未加载
dccoolgaialmost 9 years ago
I have always loved Snippets and the whole Chrome Souces ecosystem in general. In fact, I use Sources as my editor of choice over Sublime, Notepad++, etc. I find the &quot;map to local&quot; feature outdoes anything I use from the other editors. Only gripe is I wish snippets were stored as text files (or at least that was an option)... couple weeks ago my Chrome profile got corrupted and I lost like a year of snippets.
adamnemecekalmost 9 years ago
I discovered it back when this came out and pentesting has never been the same.
4684499almost 9 years ago
Is that possible to run these snippets automatically once page is loaded? I guess this will raise some security issues if it&#x27;s possible, but I don&#x27;t want to use things like Tampermonkey anymore.
评论 #12192052 未加载
footaalmost 9 years ago
I was showing this to my coworkers the other day, they thought it was great.
stefanwlbalmost 9 years ago
Are the snippets saved to the google account as well, so that I can access them anywhere I sync my chrome dev browser?
Nickersfalmost 9 years ago
Love it. Been using for a while now.
mxuribealmost 9 years ago
I never knew this; quite handy!!
ben174almost 9 years ago
Not sure this is &quot;hidden&quot;. Anyone who has spent ten minutes poking around chrome dev tools is likely to have discovered this.
评论 #12191804 未加载
评论 #12192027 未加载
评论 #12191791 未加载
评论 #12193407 未加载
stephenralmost 9 years ago
I know a lot of developers basically treat Google as Jeebus returned, and therefor infallible, but this just seems like unnecessary bloat.<p>What&#x27;s next, a JS minifier built into Chrome, so 1% of users can use it as an IDE while everyone else just gets more shit they don&#x27;t need or want?
评论 #12192881 未加载
评论 #12193488 未加载