Last active
March 22, 2019 23:46
-
-
Save jamiepine/ec6764d298bda3cc3a29790e03e084e7 to your computer and use it in GitHub Desktop.
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
{ | |
// Place your snippets for javascript here. Each snippet is defined under a snippet name and has a prefix, body and | |
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the | |
// same ids are connected. | |
// Example: | |
// "Print to console": { | |
// "prefix": "log", | |
// "body": [ | |
// "console.log('$1');", | |
// "$2" | |
// ], | |
// "description": "Log output to console" | |
// } | |
"multicomment": { | |
"prefix": "mc", | |
"body": [ | |
"/**", | |
"* $0", | |
"* @param {Object} name - description", | |
"*/" | |
], | |
"description": "Create multiline command." | |
}, | |
"if": { | |
"prefix": "if", | |
"body": [ | |
"if (${1:condition}) {", | |
" $0", | |
"}", | |
], | |
"description": "Create multiline command." | |
}, | |
"log": { | |
"prefix": "log", | |
"body": [ | |
"console.log($0)" | |
], | |
"description": "" | |
}, | |
"arrow": { | |
"prefix": "a", | |
"body": [ | |
"(${1:param}) => {", | |
" $0", | |
"}" | |
], | |
"description": "" | |
}, | |
"pulse-collection": { | |
"prefix": "pc", | |
"body": [ | |
"export default {", | |
" model: {},", | |
" data: {$0},", | |
" persist: [],", | |
" groups: [],", | |
" routes: {},", | |
" actions: {},", | |
" filters: {}", | |
"};" | |
], | |
"description": "Create multiline command." | |
}, | |
"pulse-route": { | |
"prefix": "route", | |
"body": [ | |
"${1:name}: request => request.get(`${2:route}`)", | |
], | |
"description": "Create multiline command." | |
}, | |
"pulse-function": { | |
"prefix": "action", | |
"body": [ | |
"${1:name}({ ${2:collection} }) {", | |
" $0", | |
"},", | |
], | |
"description": "Create multiline command." | |
} | |
} |
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
{ | |
// Place your snippets for vue here. Each snippet is defined under a snippet name and has a prefix, body and | |
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the | |
// same ids are connected. | |
// Example: | |
// "Print to console": { | |
// "prefix": "log", | |
// "body": [ | |
// "console.log('$1');", | |
// "$2" | |
// ], | |
// "description": "Log output to console" | |
// } | |
"vuetemplate": { | |
"prefix": "vue", | |
"body": [ | |
"<template>", | |
" <div id=\"$name\">", | |
"", | |
" </div>", | |
"</template>", | |
"", | |
"<script>", | |
"export default {", | |
" components: {},", | |
" name: '$name',", | |
" mounted() {", | |
"", | |
" },", | |
" data() {", | |
" return {", | |
"", | |
" }", | |
" },", | |
" computed: {", | |
"", | |
" },", | |
" methods: {", | |
"", | |
" }", | |
"}", | |
"</script>", | |
"", | |
"<style lang=\"scss\" scoped>", | |
" #$name {", | |
" ", | |
" }", | |
"</style>" | |
], | |
"description": "Create multiline command." | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment