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

Stack Overflow Snippets

by rinas7 ALL

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

Details

Installs

  • Total 3K
  • Win 1K
  • Mac 546
  • Linux 524
Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6 Mar 5 Mar 4 Mar 3 Mar 2 Mar 1 Feb 28 Feb 27 Feb 26 Feb 25 Feb 24 Feb 23 Feb 22 Feb 21 Feb 20 Feb 19 Feb 18 Feb 17 Feb 16 Feb 15 Feb 14 Feb 13 Feb 12 Feb 11 Feb 10 Feb 9 Feb 8 Feb 7 Feb 6 Feb 5 Feb 4 Feb 3 Feb 2 Feb 1 Jan 31 Jan 30 Jan 29 Jan 28 Jan 27
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 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 1 0 0 0
Mac 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 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 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 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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:

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.