Last active
April 17, 2026 15:41
-
-
Save FyeCobain/4f52d8cee616e0c3da21c8477515d809 to your computer and use it in GitHub Desktop.
JavaScript User Snippets (no semicolon)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "TO-DO": { | |
| "prefix": "td", | |
| "body": [ | |
| "// TODO", | |
| ], | |
| "description": "Writes '//TODO'" | |
| }, | |
| "console.log()": { | |
| "prefix": "clg", | |
| "body": [ | |
| "console.log($1)", | |
| ], | |
| "description": "Writes 'console.log()'" | |
| }, | |
| "import... from": { | |
| "prefix": "ifr", | |
| "body": [ | |
| "import { $1 } from '$2'" | |
| ], | |
| "description": "Write the import(s) first" | |
| }, | |
| "from... import": { | |
| "prefix": "fri", | |
| "body": [ | |
| "import { $2 } from '$1'" | |
| ], | |
| "description": "Write the from first" | |
| }, | |
| "IIFE": { | |
| "prefix": "iif", | |
| "body": [ | |
| ";(\n function($1) {\n $2\n }\n)()" | |
| ], | |
| "description": "Writes and IIFE" | |
| }, | |
| "Arrow IIFE": { | |
| "prefix": "aii", | |
| "body": [ | |
| ";(\n ($1) => {\n $2\n }\n)()" | |
| ], | |
| "description": "Writes and arrow IIFE" | |
| }, | |
| "export function": { | |
| "prefix": "ef", | |
| "body": [ | |
| "export function $1($2) {\n $3\n}" | |
| ], | |
| "description": "Writes 'export function '" | |
| }, | |
| "export async function": { | |
| "prefix": "eaf", | |
| "body": [ | |
| "export async function $1($2) {\n $3\n}" | |
| ], | |
| "description": "Writes 'export async function '" | |
| }, | |
| "export default function": { | |
| "prefix": "edf", | |
| "body": [ | |
| "export default function ${TM_FILENAME_BASE}($1) {\n $2\n}" | |
| ], | |
| "description": "Writes 'export default function _FileName_(){...'" | |
| }, | |
| "export default async function": { | |
| "prefix": "edaf", | |
| "body": [ | |
| "export default async function ${TM_FILENAME_BASE}($1) {\n $2\n}" | |
| ], | |
| "description": "Writes 'export default async function _FileName_(){...'" | |
| }, | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment