8000 GitHub - Osedea/osd-atom-snippets: Snippets we use at Osedea
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on May 17, 2020. It is now read-only.

Osedea/osd-atom-snippets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Osedea Atom Snippets

All our snippets are conforming to our eslint configuration.

  • React snippets using ES6
  • React-native snippets using ES6
  • Redux ducks snippets

This repo has been inspired a lot by Websbushka's atom-react-snippets package.

What is a snippet again?

A snippet is a piece of code linked to a shortcut/alias.

In our case, all our snippets' aliases start by osd for Osedea so we have for example:

  • osdReactClass : Creates a standard ES6 React Class
  • osdDuck : Creates a Duck

But a snippet is a bit more than just a piece of code, it also specify fields that you can fill.

After inserting a snippet, hitting Tab will make your cursor jump from field to field.

Install

  • Press Command + Shift + p
  • Type Install P
  • Press Settings View: Install Packages And Themes or type return
  • Type osd-atom
  • Install osd-atom-snippets
  • Restart Atom
  • Fly off!

Use

Go in a js file and type osd and Atom should propose you all of the possible snippets.

After choosing one, press return and it should insert the snippet with the cursor in the first "field".

Hit Tab to go from the current "field" to the next "field" of the snippet.

A screenshot of your package

About

Snippets we use at Osedea

Resources

License

Stars

Watchers

Forks

Packages

No packages published
0