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 541
  • Linux 520
May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27
Windows 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
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 1 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 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 1 0 0 0 1 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.