Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bradgarropy/vscode-snippets

✂️ vscode snippet library
https://github.com/bradgarropy/vscode-snippets

extension javascript jest markdown python react serverless snippets styled-components vscode

Last synced: 2 days ago
JSON representation

✂️ vscode snippet library

Awesome Lists containing this project

README

        

[![version][version-badge]][marketplace]
[![downloads][downloads-badge]][marketplace]
[![discord][discord-badge]][discord]

✂️ _[Visual Studio Code][vscode] snippet library for [JavaScript][javascript], [TypeScript][typescript], [Markdown][markdown], and [Python][python]._

### ☕️ JavaScript / 🔵 TypeScript

| Prefix | Description |
| ------ | --------------------------- |
| `log` | Logs output to the console. |
| `imp` | Import statement. |
| `nimp` | Named import statement. |
| `af` | Arrow function. |
| `aaf` | Anonymous arrow function. |

### ⚡️ Serverless

| Prefix | Description |
| ------ | ---------------------------- |
| `sf` | Netlify serverless function. |

### 🃏 Jest

| Prefix | Description |
| ------ | ---------------- |
| `jd` | Jest describe. |
| `jt` | Jest test. |
| `je` | Jest expect. |
| `jba` | Jest beforeAll. |
| `jaa` | Jest afterAll. |
| `jbe` | Jest beforeEach. |
| `jae` | Jest afterEach. |

### ⚛️ React

| Prefix | Description |
| ------ | ----------------------- |
| `rc` | React component. |
| `us` | Use state hook. |
| `ue` | Use effect hook. |
| `ule` | Use layout effect hook. |
| `uc` | Use context hook. |

### 💿 Remix

| Prefix | Description |
| ------- | ---------------------- |
| `rmxlk` | Remix links function. |
| `rmxm` | Remix meta function. |
| `rmxld` | Remix loader function. |
| `rmxa` | Remix action function. |
| `rmxcb` | Remix catch boundary. |
| `rmxeb` | Remix error boundary. |
| `rmxr` | Remix route. |

### 💅🏼 Styled Components

| Prefix | Description |
| ------ | ----------------- |
| `sc` | Styled component. |

### 🔻 Markdown

| Prefix | Description |
| --------- | --------------------- |
| `ml` | Reference style link. |
| `mlr` | Link reference. |
| `mli` | Inline style link. |
| `mimg` | Image. |
| `mb` | Bold text. |
| `mi` | Italic text. |
| `mbq` | Blockquote. |
| `mh` | First level header. |
| `mhh` | Second level header. |
| `mhhh` | Third level header. |
| `mhhhh` | Fourth level header. |
| `mhhhhh` | Fifth level header. |
| `mhhhhhh` | Sixth level header. |
| `mc` | Inline code. |
| `mcb` | Block of code. |

### 🐍 Python

| Prefix | Description |
| ------ | -------------------------------------- |
| `log` | Logs an info message to the console. |
| `logi` | Logs an info message to the console. |
| `logw` | Logs a warning message to the console. |
| `loge` | Logs an error message to the console. |
| `def` | Method definition with docstring. |

[vscode]: https://code.visualstudio.com
[version-badge]: https://img.shields.io/visual-studio-marketplace/v/bradgarropy.bg-snippets?style=flat-square
[downloads-badge]: https://img.shields.io/visual-studio-marketplace/i/bradgarropy.bg-snippets?style=flat-square
[discord-badge]: https://img.shields.io/discord/748196643140010015?style=flat-square
[marketplace]: https://marketplace.visualstudio.com/items?itemName=bradgarropy.bg-snippets
[discord]: https://bradgarropy.com/discord
[javascript]: https://javascript.com
[typescript]: https://typescriptlang.org
[markdown]: https://markdownguide.org
[python]: https://python.org