All Projects → rafamadriz → friendly-snippets

rafamadriz / friendly-snippets

Licence: MIT license
Set of preconfigured snippets for different languages.

Projects that are alternatives of or similar to friendly-snippets

jupyter boilerplate
Adds a customizable menu item to Jupyter (IPython) notebooks to insert boilerplate snippets of code
Stars: ✭ 69 (-91.63%)
Mutual labels:  snippets
testcafe-snippets
Code snippets for TestCafe
Stars: ✭ 54 (-93.45%)
Mutual labels:  snippets
fixes
Random development problems and solutions
Stars: ✭ 38 (-95.39%)
Mutual labels:  snippets
vim-nayvy
🌑 Enriching python coding in Vim 🐍
Stars: ✭ 66 (-91.99%)
Mutual labels:  snippets
duck
Create command snippets for repetitive development task. Share them to an online repository system (self hosted options available).
Stars: ✭ 40 (-95.15%)
Mutual labels:  snippets
getx-snippets-intelliJ
An extension to accelerate the process of developing applications with flutter, aimed at everyone using the GetX package.
Stars: ✭ 52 (-93.69%)
Mutual labels:  snippets
vscode-control-snippets
Disable or enable VS Code's built-in snippets and manually installed snippets from extensions.
Stars: ✭ 43 (-94.78%)
Mutual labels:  snippets
devs-codex
A repo of helpful front end development and design links
Stars: ✭ 16 (-98.06%)
Mutual labels:  snippets
CSharpMethodsCodeSnippets
Code snippets for C# methods.
Stars: ✭ 44 (-94.66%)
Mutual labels:  snippets
VSCode-LaTeX-Inkscape
✍️ A way to integrate LaTeX, VS Code, and Inkscape in macOS
Stars: ✭ 62 (-92.48%)
Mutual labels:  snippets
miniSnip
Lightweight snippet plugin for Vim
Stars: ✭ 45 (-94.54%)
Mutual labels:  snippets
zurb-ink-sublime-snippets
ZURB Ink Sublime Snippets
Stars: ✭ 25 (-96.97%)
Mutual labels:  snippets
Tutorials
Repository for my YouTube tutorials + code snippets
Stars: ✭ 224 (-72.82%)
Mutual labels:  snippets
vscode-gcode-syntax
G Code Language Extension for Visual Studio Code. Turn VSCode into a fully capable G-Code editor, including language support & more.
Stars: ✭ 59 (-92.84%)
Mutual labels:  snippets
bits
Bits by Creative Tim - Code Snippets for easier coding
Stars: ✭ 142 (-82.77%)
Mutual labels:  snippets
snippets
The Doom Emacs snippets library
Stars: ✭ 248 (-69.9%)
Mutual labels:  snippets
atom-standardjs-snippets
⚡ A collection of JavaScript snippets for Atom, Standard Style
Stars: ✭ 47 (-94.3%)
Mutual labels:  snippets
snippets
A Chrome extension that allows you to create and edit JavaScript code snippets, which are synced to all your computers
Stars: ✭ 46 (-94.42%)
Mutual labels:  snippets
language-mjml
Atom Editor package providing syntax support for MJML
Stars: ✭ 48 (-94.17%)
Mutual labels:  snippets
snippets
My code snippets
Stars: ✭ 29 (-96.48%)
Mutual labels:  snippets

Friendly Snippets

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

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.

Usage

This collection of snippets should work with any plugin that supports loading vscode snippets. Like for example:

Add snippets from a framework to a filetype.

There's extra snippets included in this repo but they are not added by default, since it would be irrelevant for people not using those frameworks. See snippets/frameworks

For example: if you want to add rails snippets to ruby.

With LuaSnip:

require'luasnip'.filetype_extend("ruby", {"rails"})

This method is going to work globally on all open buffers with ruby filetype. Alternatively you can do set filetype=ruby.rails so it only works on a specific buffer, but this is going to mess up with syntax highlighting.

With vim-vsnip:

let g:vsnip_filetypes.ruby = ['rails']

For more info related to this change see #88

Install

Use your plugin manager of choice, e.g.

-- Packer
use "rafamadriz/friendly-snippets"

-- Plug
Plug 'rafamadriz/friendly-snippets'

-- If you're using coc.nvim, you can use:
CocInstall https://github.com/rafamadriz/friendly-snippets@main

HTML

HTML gif

JS

JS gif

NOTE: Using nvim-compe with vim-vsnip on the videos.

TODO

  • Add all included snippets to the Wiki.

Thanks to all contributors

Credits

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].