Giter Site home page Giter Site logo

friendly-snippets's Introduction

Friendly Snippets

Snippets collection for a set of different programming languages for faster development.

Goal

The only goal is to have one community driven repository for all kinds of snippets in all programming languages, this way you can have it all in one place.

Contributing

You can commit all kinds of useful snippets that you may have for personal use, but first make sure that the snippets don't already exist, so we don't have duplicates and it doesn't become a pain to maintain.

Snippets for:

  • HTML, Pug, Jade
  • CSS, Sass, Less, Stylus
  • Javascript, Typescript, Javascriptreact, Typescriptreact
  • Vue
  • PHP
  • Python
  • C
  • C++
  • Rust
  • Go
  • Eruby
  • Ruby
  • Swift
  • Java
  • Fortran
  • Lua
  • LaTex
  • Shell
  • Markdown
  • Sql

Usage

This collection of snippets should work with any plugin that supports loading vscode snippets. Like for example vim-vsnip and LuaSnip. For the moment being I recommend using vsnip since LuaSnip is still a bit of work in progress (refer to this link)

For setting up vim-vsnip refer to this link. Alternatively for setting up with LuaSnip see here and here

Install

Packer

use "rafamadriz/friendly-snippets"
use "hrsh7th/vim-vsnip"

Plug

Plug 'rafamadriz/friendly-snippets'
Plug 'hrsh7th/vim-vsnip'

Just a few examples of snippets in action

HTML

HTML gif

JS

JS gif

CSS

CSS gif

Pyhton

Python gif

C

C gif

For for more details go to the Wiki

TODO

  • Complete the list for all snippets included in the Wiki, so it's easier for contributors to see which snippets are already included.

Credits

A good portion of the snippets have been forked from the following repositories:

friendly-snippets's People

Contributors

mcepl avatar rafamadriz avatar tarkin88 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.