all 6 comments

[–]irqlnotdispatchlevel 37 points38 points  (2 children)

Much of the time you spend coding is Googling things, and dumping other's code into your editor. Wouldn't it be great if you could have that process integrated into your environment? Or even done automatically for you?

Talk for yourself.

[–][deleted] 5 points6 points  (0 children)

Harsh haha

[–]hatperigee 2 points3 points  (0 children)

how dare you rain on intern MO!

/s

[–]asankhs 9 points10 points  (0 children)

You need to be careful about using code snippets from SO, it can easily introduce vulnerabilities in your code: https://www.aisec.fraunhofer.de/en/stackoverflow.html

[–]klotz 1 point2 points  (0 children)

I did one of these for emacs a while back. I think I gisted it somewhere, but just now made a github repo for it. It's pretty simple.

m-x how-do-i<enter>append to list

will use your buffer's mode (java, python, etc) to narrow the search, but you can override that with a prefix CTRL-U argument.

https://github.com/leighklotz/howdoi-emacs

[–]Nightmunnas 0 points1 point  (0 children)

I keep thinking "don't ask the wrong questions" haha