Hacker News new | ask | show | jobs
by fred_durst 4407 days ago
I mean this in the best way possible, but do you like actually take your mouse over to the webpage, highlight the code, copy it, and then paste it into your editor? I am genuinely curious.
1 comments

Yes. I do this from time to time. Recent example, wasn't sure what the event was called in JavaScript when the window changed. Couldn't remember if it was resize or windowResize or whatever.

SE had a sample dummy event listener add function, complete with // do stuff here. I cut and paste the whole thing and added what I needed.

I suppose I could've retyped the addEventListener function from scratch but...I dunno, that seemed inefficient. I just needed the name.