Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oliverbenns/sublime-snippets
Custom snippets for Sublime Text 3
https://github.com/oliverbenns/sublime-snippets
sublime-snippets sublime-text sublime-text-3 sublime-text-plugin
Last synced: about 1 month ago
JSON representation
Custom snippets for Sublime Text 3
- Host: GitHub
- URL: https://github.com/oliverbenns/sublime-snippets
- Owner: oliverbenns
- Created: 2018-02-20T21:42:54.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-09-10T22:09:43.000Z (over 4 years ago)
- Last Synced: 2024-12-06T21:50:55.020Z (about 2 months ago)
- Topics: sublime-snippets, sublime-text, sublime-text-3, sublime-text-plugin
- Language: Shell
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sublime Snippets
Custom snippets for Sublime Text 3
## Install
These are personal snippets, so are not installed though package control. Instead, install manually:
- Default Sublime install: `sh install.sh`
- Custom Sublime install: `sh install.sh [path/to/sublime/user/dir]`## Docs
### Javascript
#### Console Log
**Trigger:** `log`
**Description:** `console.log` with 2 outputs, the var name as a string, and the var itself.
#### Todo
**Trigger:** `td`
**Description:** Js Comment pre-pended with `@TODO: `.
#### Import
**Trigger:** `ipt`
**Description:** ES6 `import` statement giving var name and path as fields.
#### JSX Comment
**Trigger:** `jc`
**Description:** A special comment for use in JSX due the default JS comment being incompatible.
#### React Pure Component
**Trigger:** `rpc`
**Description:** React Component as a single function for presentation components.
#### React Component
**Trigger:** `rc`
**Description:** React Component that extends the library default and includes constructor and render methods.
#### Connected React + Redux Component
**Trigger:** `rrc`
**Description:** React Component that has all of `rc`, plus is decorated with the `react-redux`'s `connect` decorator.