ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Stack Overflow Snippets

by rinas7 ST2/ST3

Search Stack Overflow and get code snippets from answers directly to your Sublime Text

Details

Installs

  • Total 2K
  • Win 1K
  • OS X 451
  • Linux 422
Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9
Windows 0 1 0 0 0 0 1 0 0 1 0 0 0 1 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 1 1 1 0 1 0 1 1 0 0 1 0 1 0
OS X 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0
Linux 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 1 0 0 0 0 0 0 0 0 0 1 0 1 0 0 1 0

Readme

Source
raw.​githubusercontent.​com

Stack Overflow Snippets

One day I came across this reddit post: How to Program (in four easy steps).

That four steps didn't look easy enough, so I created this:

Demo

How to Use It?

Shift + Ctrl + H

or Tools > Stack Overflow Snippets

or Command Palette > Stack Overflow Snippets.

Tips & Tricks

  • Programming language is automatically determined by the file syntax, so you don't need to add it to each query.

Can't Find a Snippet?

In some cases Google can find better results (you know, artificial intelligence and everything), so you may want to try the old school approach in case the plugin didn't return any results.

What's That Quota Thing?

The plugin uses Stack Exchange API which is limited to 300 queries per day per IP.

Typically one snippet search makes two API queries: one to get questions that match the search query and another to get answers for the selected question.

The plugin caches API responses, so if you search for the same query or select the same question multiple times no additional requests are made.

The remaining quota is displayed in the status bar after each request is sent to the API.