Skip to content

Instantly share code, notes, and snippets.

@jasonandmonte
Last active December 8, 2020 18:38
Show Gist options
  • Select an option

  • Save jasonandmonte/da527e4b34521d8577e564d4d76b98c1 to your computer and use it in GitHub Desktop.

Select an option

Save jasonandmonte/da527e4b34521d8577e564d4d76b98c1 to your computer and use it in GitHub Desktop.

Revisions

  1. jasonandmonte revised this gist Dec 8, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion user-snippets.json
    Original file line number Diff line number Diff line change
    @@ -26,7 +26,7 @@
    },
    "Double Log": {
    "prefix": "cld",
    "body": "console.log('$1:', $2);",
    "body": "console.log('$1::', $2);",
    "description": "Log with string prefix"
    }
    }
  2. jasonandmonte revised this gist Dec 7, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion user-snippets.json
    Original file line number Diff line number Diff line change
    @@ -26,7 +26,7 @@
    },
    "Double Log": {
    "prefix": "cld",
    "body": "console.log('$1:', $2)",
    "body": "console.log('$1:', $2);",
    "description": "Log with string prefix"
    }
    }
  3. jasonandmonte created this gist Dec 7, 2020.
    32 changes: 32 additions & 0 deletions user-snippets.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,32 @@
    {
    "const": {
    "prefix": "c",
    "body": "const $0",
    "description": "const"
    },
    "let": {
    "prefix": "l",
    "body": "let $0",
    "description": "let"
    },
    "arrow": {
    "prefix": "ar",
    "body": "const $1 = (${2:param}) => $3",
    "description": "named arrow expression"
    },
    "Import": {
    "prefix": "im",
    "body": "import $1 from '$2';",
    "description": "Import Statement"
    },
    "Require": {
    "prefix": "rq",
    "body": "const $1 = require('$2');",
    "description": "Require Function"
    },
    "Double Log": {
    "prefix": "cld",
    "body": "console.log('$1:', $2)",
    "description": "Log with string prefix"
    }
    }