Last active
November 8, 2019 18:58
-
-
Save minosss/3179731efb4b6c0334019a6298e13d57 to your computer and use it in GitHub Desktop.
This file contains 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
{"lastUpload":"2019-11-08T18:58:25.276Z","extensionVersion":"v3.4.3"} |
This file contains 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
[ | |
{ | |
"metadata": { | |
"id": "d3836729-9cc1-42c1-b2af-d50071f57d29", | |
"publisherId": "formulahendry.auto-close-tag", | |
"publisherDisplayName": "formulahendry" | |
}, | |
"name": "auto-close-tag", | |
"publisher": "formulahendry", | |
"version": "0.5.6" | |
}, | |
{ | |
"metadata": { | |
"id": "6e440e71-8ed9-4f25-bb78-4b13096b8a03", | |
"publisherId": "formulahendry.auto-rename-tag", | |
"publisherDisplayName": "formulahendry" | |
}, | |
"name": "auto-rename-tag", | |
"publisher": "formulahendry", | |
"version": "0.1.1" | |
}, | |
{ | |
"metadata": { | |
"id": "697255a9-3f36-44c8-b084-d3b91edfb23a", | |
"publisherId": "HookyQR.beautify", | |
"publisherDisplayName": "HookyQR" | |
}, | |
"name": "beautify", | |
"publisher": "HookyQR", | |
"version": "1.5.0" | |
}, | |
{ | |
"metadata": { | |
"id": "f583eafd-aa0d-4ccb-8f44-d1e610389660", | |
"publisherId": "CoenraadS.bracket-pair-colorizer", | |
"publisherDisplayName": "CoenraadS" | |
}, | |
"name": "bracket-pair-colorizer", | |
"publisher": "CoenraadS", | |
"version": "1.0.61" | |
}, | |
{ | |
"metadata": { | |
"id": "a6a0c5b2-d078-4bf5-a9ee-4e37054414b3", | |
"publisherId": "formulahendry.code-runner", | |
"publisherDisplayName": "formulahendry" | |
}, | |
"name": "code-runner", | |
"publisher": "formulahendry", | |
"version": "0.9.14" | |
}, | |
{ | |
"metadata": { | |
"id": "e337c67b-55c2-4fef-8949-eb260e7fb7fd", | |
"publisherId": "Shan.code-settings-sync", | |
"publisherDisplayName": "Shan" | |
}, | |
"name": "code-settings-sync", | |
"publisher": "Shan", | |
"version": "3.4.3" | |
}, | |
{ | |
"metadata": { | |
"id": "1ec62ca5-d7f9-4ddb-a882-e8d018c0aefd", | |
"publisherId": "msjsdiag.debugger-for-chrome", | |
"publisherDisplayName": "msjsdiag" | |
}, | |
"name": "debugger-for-chrome", | |
"publisher": "msjsdiag", | |
"version": "4.12.1" | |
}, | |
{ | |
"metadata": { | |
"id": "532533c9-a894-4a58-9eee-bbfbe7c06f71", | |
"publisherId": "mikestead.dotenv", | |
"publisherDisplayName": "mikestead" | |
}, | |
"name": "dotenv", | |
"publisher": "mikestead", | |
"version": "1.0.1" | |
}, | |
{ | |
"metadata": { | |
"id": "f60a60a6-95ba-42d4-b41c-3d24c1b89588", | |
"publisherId": "EditorConfig.EditorConfig", | |
"publisherDisplayName": "EditorConfig" | |
}, | |
"name": "EditorConfig", | |
"publisher": "EditorConfig", | |
"version": "0.14.2" | |
}, | |
{ | |
"metadata": { | |
"id": "5960f38e-0bbe-4644-8f9c-9c8824e82511", | |
"publisherId": "donjayamanne.githistory", | |
"publisherDisplayName": "donjayamanne" | |
}, | |
"name": "githistory", | |
"publisher": "donjayamanne", | |
"version": "0.4.6" | |
}, | |
{ | |
"metadata": { | |
"id": "5db78037-f674-459f-a236-db622c427c5b", | |
"publisherId": "PKief.material-icon-theme", | |
"publisherDisplayName": "PKief" | |
}, | |
"name": "material-icon-theme", | |
"publisher": "PKief", | |
"version": "3.9.1" | |
}, | |
{ | |
"metadata": { | |
"id": "a41c1549-4053-44d4-bf30-60fc809b4a86", | |
"publisherId": "christian-kohler.path-intellisense", | |
"publisherDisplayName": "christian-kohler" | |
}, | |
"name": "path-intellisense", | |
"publisher": "christian-kohler", | |
"version": "1.4.2" | |
}, | |
{ | |
"metadata": { | |
"id": "d80b9a94-f4a6-4e39-bc42-62212e365682", | |
"publisherId": "pnp.polacode", | |
"publisherDisplayName": "pnp" | |
}, | |
"name": "polacode", | |
"publisher": "pnp", | |
"version": "0.3.4" | |
}, | |
{ | |
"metadata": { | |
"id": "96fa4707-6983-4489-b7c5-d5ffdfdcce90", | |
"publisherId": "esbenp.prettier-vscode", | |
"publisherDisplayName": "esbenp" | |
}, | |
"name": "prettier-vscode", | |
"publisher": "esbenp", | |
"version": "2.3.0" | |
}, | |
{ | |
"metadata": { | |
"id": "1b747f06-3789-4ebd-ac99-f1fe430c3347", | |
"publisherId": "alefragnani.project-manager", | |
"publisherDisplayName": "alefragnani" | |
}, | |
"name": "project-manager", | |
"publisher": "alefragnani", | |
"version": "10.8.0" | |
}, | |
{ | |
"metadata": { | |
"id": "f1f59ae4-9318-4f3c-a9b5-81b2eaa5f8a5", | |
"publisherId": "ms-python.python", | |
"publisherDisplayName": "ms-python" | |
}, | |
"name": "python", | |
"publisher": "ms-python", | |
"version": "2019.10.44104" | |
}, | |
{ | |
"metadata": { | |
"id": "e52bce95-a629-455f-8626-e7301b9e372a", | |
"publisherId": "robinbentley.sass-indented", | |
"publisherDisplayName": "robinbentley" | |
}, | |
"name": "sass-indented", | |
"publisher": "robinbentley", | |
"version": "1.5.1" | |
}, | |
{ | |
"metadata": { | |
"id": "735af542-944f-4b07-b336-9df27d7b8d84", | |
"publisherId": "smlombardi.slime", | |
"publisherDisplayName": "smlombardi" | |
}, | |
"name": "slime", | |
"publisher": "smlombardi", | |
"version": "2.34.0" | |
}, | |
{ | |
"metadata": { | |
"id": "f8b5562e-a2d9-49ab-9f91-e7da91998a92", | |
"publisherId": "shinnn.stylelint", | |
"publisherDisplayName": "shinnn" | |
}, | |
"name": "stylelint", | |
"publisher": "shinnn", | |
"version": "0.51.0" | |
}, | |
{ | |
"metadata": { | |
"id": "261cac81-cd7b-4555-bb41-0c2d2bcd3e70", | |
"publisherId": "Gruntfuggly.todo-tree", | |
"publisherDisplayName": "Gruntfuggly" | |
}, | |
"name": "todo-tree", | |
"publisher": "Gruntfuggly", | |
"version": "0.0.162" | |
}, | |
{ | |
"metadata": { | |
"id": "2f5dd8cb-d251-4d70-abfe-ddebcb077483", | |
"publisherId": "octref.vetur", | |
"publisherDisplayName": "octref" | |
}, | |
"name": "vetur", | |
"publisher": "octref", | |
"version": "0.22.6" | |
}, | |
{ | |
"metadata": { | |
"id": "583b2b34-2c1e-4634-8c0b-0b82e283ea3a", | |
"publisherId": "dbaeumer.vscode-eslint", | |
"publisherDisplayName": "dbaeumer" | |
}, | |
"name": "vscode-eslint", | |
"publisher": "dbaeumer", | |
"version": "1.9.1" | |
}, | |
{ | |
"metadata": { | |
"id": "d637104e-1fd7-4063-98fc-8afe46012c9b", | |
"publisherId": "sleistner.vscode-fileutils", | |
"publisherDisplayName": "sleistner" | |
}, | |
"name": "vscode-fileutils", | |
"publisher": "sleistner", | |
"version": "3.0.0" | |
}, | |
{ | |
"metadata": { | |
"id": "aaee577c-f062-495a-9816-0cbd442f1d25", | |
"publisherId": "ecmel.vscode-html-css", | |
"publisherDisplayName": "ecmel" | |
}, | |
"name": "vscode-html-css", | |
"publisher": "ecmel", | |
"version": "0.2.3" | |
}, | |
{ | |
"metadata": { | |
"id": "4db62a7c-7d70-419c-96d2-6c3a4dc77ea5", | |
"publisherId": "bradlc.vscode-tailwindcss", | |
"publisherDisplayName": "bradlc" | |
}, | |
"name": "vscode-tailwindcss", | |
"publisher": "bradlc", | |
"version": "0.2.0" | |
} | |
] |
This file contains 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 key bindings in this file to overwrite the defaults | |
[] |
This file contains 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
{ | |
// Defines VSCode's display language. | |
// See https://go.microsoft.com/fwlink/?LinkId=761051 for a list of supported languages. | |
// Changing the value requires restarting VSCode. | |
"locale":"en-US" | |
} |
This file contains 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 settings in this file to overwrite the default settings | |
{ | |
"editor.tokenColorCustomizations": { | |
"textMateRules": [ | |
{ | |
"scope": "comment, comment.block.html", | |
"settings": { | |
"fontStyle": "italic" | |
} | |
} | |
] | |
}, | |
// ----- 编辑器 | |
"editor.fontFamily": "Fira Code", | |
"editor.fontSize": 14, | |
"editor.lineHeight": 24, | |
"editor.letterSpacing": 0.4, | |
"editor.fontLigatures": true, | |
// 格式化 | |
"editor.formatOnType": false, | |
"editor.formatOnPaste": false, | |
"editor.formatOnSave": false, | |
// snippets 位置放到备选顶部 | |
"editor.snippetSuggestions": "top", | |
// 关闭小地图 | |
"editor.minimap.enabled": false, | |
// 多行编辑 | |
"editor.multiCursorModifier": "alt", | |
"editor.tabCompletion": "on", | |
"editor.hideCursorInOverviewRuler": true, | |
// 显示行数 | |
"editor.lineNumbers": "on", | |
"editor.matchBrackets": false, | |
"editor.occurrencesHighlight": false, | |
"editor.overviewRulerBorder": false, | |
// "editor.renderIndentGuides": false, | |
"editor.renderLineHighlight": "line", | |
"editor.parameterHints.enabled": false, | |
// "editor.hover": false, | |
// 代码块折叠 | |
"editor.folding": false, | |
// 换行 | |
"editor.wordWrap": "on", | |
// ----- 资源管理器 文件列表 | |
"explorer.openEditors.visible": 0, | |
"explorer.decorations.badges": false, | |
// 取消删除的确认 | |
"explorer.confirmDragAndDrop": false, | |
"explorer.confirmDelete": false, | |
// 自动导航当前文件 | |
"explorer.autoReveal": false, | |
"terminal.external.osxExec": "iTerm.app", | |
// 工具栏 | |
"workbench.activityBar.visible": false, | |
// 底部状态栏 | |
"workbench.statusBar.visible": true, | |
// 打开文件图标 | |
"workbench.editor.showIcons": false, | |
// ----- git history | |
"gitHistory.showEditorTitleMenuBarIcons": false, | |
"code-runner.showRunIconInEditorTitleMenu": false, | |
// ----- emmet | |
"emmet.triggerExpansionOnTab": true, | |
"files.exclude": { | |
"**/.git": true, | |
"**/.svn": true, | |
"**/.hg": true, | |
"**/CVS": true, | |
"**/.DS_Store": true, | |
"**/*.js": { | |
"when": "$(basename).ts" | |
}, | |
"**/**.js": { | |
"when": "$(basename).tsx" | |
} | |
}, | |
"window.zoomLevel": 0, | |
"eslint.alwaysShowStatus": true, | |
"eslint.packageManager": "yarn", | |
"eslint.validate": [ | |
"javascript", | |
"javascriptreact", | |
"vue" | |
], | |
"http.proxy": "http://127.0.0.1:1087", | |
"prettier.requireConfig": true, | |
"prettier.singleQuote": true, | |
"prettier.jsxSingleQuote": true, | |
"prettier.endOfLine": "lf", | |
"prettier.bracketSpacing": false, | |
"prettier.disableLanguages": ["yaml", "markdown"], | |
"prettier.useTabs": true, | |
"prettier.tabWidth": 4, | |
"editor.defaultFormatter": "esbenp.prettier-vscode", | |
"workbench.iconTheme": "material-icon-theme", | |
"workbench.colorTheme": "Slime", | |
"window.restoreWindows": "none", | |
"npm.packageManager": "yarn", | |
"breadcrumbs.enabled": false, | |
"vetur.format.options.tabSize": 4, | |
"vetur.format.options.useTabs": true, | |
"material-icon-theme.activeIconPack": "vue_vuex", | |
"vsintellicode.java.completionsEnabled": false, | |
"css.validate": false, | |
"scss.validate": false, | |
"terminal.integrated.rendererType": "dom", | |
"workbench.editor.showTabs": true, | |
"search.showLineNumbers": true, | |
"sync.gist": "3179731efb4b6c0334019a6298e13d57" | |
} |
This file contains 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 Batch 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" | |
} | |
*/ | |
} |
This file contains 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 Go 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" | |
} | |
*/ | |
} |
This file contains 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
{ | |
// console | |
"console log": { | |
"prefix": "cl", | |
"body": "console.log(${1});" | |
}, | |
"console info": { | |
"prefix": "ci", | |
"body": "console.info(${1});" | |
}, | |
"console error": { | |
"prefix": "ce", | |
"body": "console.error(${1});" | |
}, | |
"console warn": { | |
"prefix": "cw", | |
"body": "console.warn(${1});" | |
}, | |
"console assest": { | |
"prefix": "ca", | |
"body": "console.assert(${1});" | |
}, | |
"console clear": { | |
"prefix": "cc", | |
"body": "console.clear();" | |
}, | |
// statement | |
"let statement": { | |
"prefix": "l", | |
"body": "let ${1:name};" | |
}, | |
"let assignment": { | |
"prefix": "l=", | |
"body": "let ${1:name} = ${2:value}" | |
}, | |
"const statement": { | |
"prefix": "c", | |
"body": "const ${1:name};" | |
}, | |
"const assignment": { | |
"prefix": "c=", | |
"body": "const ${1:name} = ${2:value};" | |
}, | |
"key-value pair": { | |
"prefix": "pair", | |
"body": "${1:name}: ${2:value}," | |
}, | |
"async function": { | |
"prefix": "asf", | |
"body": [ | |
"async function (${1:arguments}) {", | |
"\t${2}", | |
"}" | |
] | |
}, | |
"arrow function (ES6)": { | |
"prefix": "af", | |
"body": "(${1:arguments}) => ${2:statement}" | |
}, | |
"arrow function with body (ES6)": { | |
"prefix": "afb", | |
"body": [ | |
"(${1:arguments}) => {", | |
"\t${2}", | |
"}" | |
] | |
}, | |
// Iterables | |
"map function": { | |
"prefix": "map", | |
"body": [ | |
"${1:iterable}.map((${2:item}) => {", | |
"\t${3}", | |
"}" | |
] | |
}, | |
"forEach function": { | |
"prefix": "for", | |
"body": [ | |
"${1:iterable}.forEach((${2:item}) => {", | |
"\t${3}", | |
"}" | |
] | |
}, | |
// | |
"require a module": { | |
"prefix": "re", | |
"body": "require('${1:module}')" | |
}, | |
"require and assign a module": { | |
"prefix": "cre", | |
"body": "const ${1:module} = require('${1:module}');" | |
}, | |
"export member": { | |
"prefix": "em", | |
"body": "exports.${1:name} = ${2:value};" | |
}, | |
"module.exports": { | |
"prefix": "me", | |
"body": "module.exports = ${1:name};" | |
}, | |
// | |
"export member (es)": { | |
"prefix": "ec", | |
"body": "export const ${1:name} = ${2:value};" | |
}, | |
"export default": { | |
"prefix": "ed", | |
"body": "export default ${1:name};" | |
}, | |
"use strict": { | |
"prefix": "us", | |
"body": "'use strict';" | |
}, | |
// es6 | |
"import statement": { | |
"prefix": "im", | |
"body": "import $1 from '$1';", | |
"description": "导入模块" | |
}, | |
"import statement alias": { | |
"prefix": "imm", | |
"body": "import ${2:m} from '$1';", | |
"description": "导入项目模块" | |
}, | |
"import props statement": { | |
"prefix": "imp", | |
"body": "import {$2} from '${1:module}';", | |
"description": "导入属性" | |
}, | |
// react | |
"import React": { | |
"prefix": "imr", | |
"body": "import React from 'react';", | |
"description": "导入React库" | |
}, | |
"import React and Component": { | |
"prefix": "imrc", | |
"body": "import React, {Component} from 'react';", | |
"description": "导入React库和Component类" | |
}, | |
"React component scaffold": { | |
"prefix": "scr", | |
"body": [ | |
"const ${1:name} = (${2}) => {", | |
"\treturn (", | |
"\t\t${3:<div>$1$4</div>}", | |
"\t)", | |
"}" | |
], | |
"description": "React组件" | |
}, | |
"React component class scaffold": { | |
"prefix": "scrc", | |
"body": [ | |
"import React, { Component } from 'react';", | |
"", | |
"class $1 extends Component {", | |
"\trender() {", | |
"\t\treturn (", | |
"\t\t\t${2:<div>$1$3</div>}", | |
"\t\t)", | |
"\t}", | |
"}", | |
"", | |
"export default $1", | |
"" | |
], | |
"description": "React标准组件类" | |
}, | |
"React render()": { | |
"prefix": "rr", | |
"body": [ | |
"render() {", | |
"\treturn ($1)", | |
"}" | |
], | |
"description": "渲染方法render" | |
}, | |
"React componentDidMount()": { | |
"prefix": "rcdm", | |
"body": [ | |
"componentDidMount() {$1}" | |
], | |
"description": "组件已经插入到结构树中,可以获取DOM或者处理一些数据请求,如果在这加了侦听或订阅,记得在 **componentWillUnmount** 中取消。" | |
}, | |
"React componentDidUpdate()": { | |
"prefix": "rcdu", | |
"body": [ | |
"componentDidUpdate(${1:prevProps, prevState, snapshot}) {$2}" | |
], | |
"description": "组件更新后" | |
}, | |
"React componentWillUnmount()": { | |
"prefix": "rcwu", | |
"body": [ | |
"componentWillUnmount() {$1}" | |
], | |
"description": "组件准备卸载" | |
}, | |
// Vue. | |
"Vue import": { | |
"prefix": "vimport", | |
"body": "import Vue from 'vue';" | |
}, | |
"Vue import api": { | |
"prefix": "vapi", | |
"body": "import ${2} from '@/api/${1}';" | |
}, | |
"Vue import inner component": { | |
"prefix": "vimportinnercomp", | |
"body": "import $1 from './components/${1}';" | |
}, | |
"Vue import component": { | |
"prefix": "vimportcomp", | |
"body": "import $1 from '@/components/${1}/${1}';" | |
}, | |
"Vue signle file class": { | |
"prefix": "vclass", | |
"body": [ | |
"export default {", | |
"\tname: '${1:name}',", | |
"\trender(h) {", | |
"\t\treturn (${1:<div></div>});", | |
"\t}", | |
"};" | |
] | |
}, | |
"Vue instance componnets": { | |
"prefix": "vcomps", | |
"body": [ | |
"components: {${1}}," | |
] | |
}, | |
"Vue instance props": { | |
"prefix": "vprops", | |
"body": [ | |
"props: {${1}},", | |
] | |
}, | |
"Vue instance data": { | |
"prefix": "vdata", | |
"body": [ | |
"data() {", | |
"\treturn {${1}};", | |
"}," | |
] | |
}, | |
"Vue instance methods": { | |
"prefix": "vmethods", | |
"body": [ | |
"methods: {", | |
"\t${1}", | |
"}," | |
] | |
}, | |
"Key/value pair": { | |
"prefix": "kv", | |
"body": "${1:key}: ${2:value}," | |
}, | |
"Vue instance created": { | |
"prefix": "vcreated", | |
"body": "created() {${1}},", | |
}, | |
"Vue instance mounted": { | |
"prefix": "vmounted", | |
"body": "mounted() {${1}},", | |
}, | |
"Vue instance beforeDestroy": { | |
"prefix": "vbeforedestroy", | |
"body": "beforeDestroy() {${1}}," | |
}, | |
"Vue instance render": { | |
"prefix": "vrender", | |
"body": [ | |
"render(h) {", | |
"\treturn (${1:<div></div>});", | |
"}," | |
] | |
}, | |
"Vue router import": { | |
"prefix": "vrimport", | |
"body": "import Router from 'vue-router';" | |
}, | |
"Vue router dynamic import component": { | |
"prefix": "vrroute", | |
"body": [ | |
"{", | |
"\tpath: '${1:view}',", | |
"\tname: '${1:view}',", | |
"\tcomponent: () => import('@/views/${1:view}/${1:view}'),", | |
"\tmeta: {${2}},", | |
"}," | |
] | |
}, | |
"Vue router link": { | |
"prefix": "vrlink", | |
"body": "<router-link to='${2:to}'>${1:name}</router-link>" | |
}, | |
"Vue router view": { | |
"prefix": "vrview", | |
"body": "<router-view></router-view>" | |
}, | |
"Vue vuex import": { | |
"prefix": "vximport", | |
"body": "import {${1:mapGetters}} from 'vuex';" | |
} | |
} |
This file contains 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 React 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" | |
} | |
*/ | |
} |
This file contains 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 json 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" | |
// } | |
"npm package.json": { | |
"prefix": "!pkg", | |
"body": [ | |
"{", | |
"\t\"name\": \"${1:name}\",", | |
"\t\"description\": \"${2:n/a}\",", | |
"\t\"version\": \"${3:0.1.0}\",", | |
"\t\"author\": \"${4:mino<minoscc+dev@gmail.com>}\",", | |
"\t\"license\": \"${5:MIT}\"", | |
"}" | |
], | |
"description": "default package.json" | |
} | |
} |
This file contains 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 JSON with Comments 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" | |
} | |
*/ | |
} |
This file contains 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 PHP 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" | |
} | |
*/ | |
"Use Context": { | |
"prefix": "m2.use.context", | |
"body": "use Magento\\Backend\\App\\Action\\Context;", | |
"description": "导入 Magento\\Backend\\App\\Action\\Context" | |
}, | |
"Use PageFactory": { | |
"prefix": "m2.use.pagefactory", | |
"body": "use Magento\\Framework\\View\\Result\\PageFactory;", | |
"description": "导入 Magento\\Framework\\View\\Result\\PageFactory" | |
}, | |
// action start | |
"New Action": { | |
"prefix": "m2.action", | |
"body": [ | |
"", | |
"namespace ${1:Vendor_Name}${2:\\Plugin_name}\\Controller;", | |
"", | |
"class ${3:${TM_FILENAME/(.*)\\..+$/$1/}} extends ${4:\\Magento\\Framework\\App\\Action\\Action}", | |
"{", | |
"", | |
"\tpublic function execute()", | |
"\t{", | |
"\t\t# code...", | |
"\t}", | |
"", | |
"}", | |
"" | |
], | |
"description": "新建 Controller(Action)" | |
}, | |
"Action construct()": { | |
"prefix": "m2.action.construct", | |
"body": [ | |
"public function __construct(", | |
"\tContext \\$context${1:,}", | |
") {", | |
"\tparent::__construct(\\$context);", | |
"\t${2:# code...}", | |
"}" | |
], | |
"description": "Controller(Action) 构造函数" | |
}, | |
// action end | |
// --- | |
// model start | |
"New Model": { | |
"prefix": "m2.model", | |
"body": [ | |
"", | |
"" | |
], | |
"description": "新建 Model" | |
}, | |
// model end | |
// --- | |
// block start | |
"New Block": { | |
"prefix": "m2.block", | |
"body": [ | |
"", | |
"namespace ${1:Vendor_Name}${2:\\Plugin_name}\\Block;", | |
"", | |
"class ${3:${TM_FILENAME/(.*)\\..+$/$1/}} extends ${4:\\Magento\\Framework\\View\\Element\\Template}", | |
"{", | |
"\t${5:# code...}", | |
"}", | |
"" | |
] | |
} | |
// block end | |
} |
This file contains 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 Plain Text 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" | |
} | |
*/ | |
} |
This file contains 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 Properties 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" | |
} | |
*/ | |
"Default editorconfig": { | |
"prefix": "!editor", | |
"body": [ | |
"#See http://editorconfig.org/#overview", | |
"root = true", | |
"", | |
"[*]", | |
"end_of_line = lf", | |
"charset = utf-8", | |
"insert_final_newline = true", | |
"trim_trailing_whitespace = true", | |
"", | |
"[*.{js,json}]", | |
"indent_size = 2", | |
"indent_style = space", | |
"", | |
"[*.md]", | |
"trim_trailing_whitespace = false", | |
"" | |
], | |
"description": "default .editorconfig" | |
} | |
} |
This file contains 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 typescript 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" | |
// } | |
} |
This file contains 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-html 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" | |
// } | |
} |
This file contains 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" | |
} | |
*/ | |
} |
This file contains 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 XML 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" | |
} | |
*/ | |
"Config sample": { | |
"prefix": "m2.config.new", | |
"body": [ | |
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>", | |
"<config xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"urn:magento:module:Magento_Store:etc/config.xsd\">", | |
"\t<default>", | |
"\t\t${1:<!-- code -->}", | |
"\t</default>", | |
"</config>" | |
], | |
"description": "配置文件(config.xml)样本" | |
}, | |
"Acl sample": { | |
"prefix": "m2.acl.new", | |
"body": [ | |
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>", | |
"<config xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"urn:magento:framework:Acl/etc/acl.xsd\">", | |
"\t<acl>", | |
"\t\t${1:<!-- code -->}", | |
"\t</acl>", | |
"</config>" | |
] | |
}, | |
"simple module.xml": { | |
"prefix": "m2.module.new", | |
"body": [ | |
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>", | |
"<config xmlns:xsi=\"http: //www.w3.org/2001/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"urn:magento:framework:Module/etc/module.xsd\">", | |
"\t<module name=\"${1:Vendor_Module}\" setup_version=\"${2:1.0.0}\"/>", | |
"</config>" | |
], | |
"description": "模块定义样板" | |
}, | |
"simple module.xml with sequence": { | |
"prefix": "m2.module.sequence", | |
"body": [ | |
"<?xml version=\"1.0\"?>", | |
"<config xmlns:xsi=\"http: //www.w3.org/2001/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"urn:magento:framework:Module/etc/module.xsd\">", | |
"\t<module name=\"${1:Vendor_Module}\" setup_version=\"${2:1.0.0}\">", | |
"\t\t<sequence>", | |
"\t\t\t<module name=\"$3\" />", | |
"\t\t</sequence>", | |
"\t</module>", | |
"</config>" | |
], | |
"description": "模板定义样板,依赖模块顺序" | |
}, | |
// | |
"Override Class": { | |
"prefix": "m2.di.preference", | |
"body": [ | |
"<preference for=\"$1\" type=\"$2\" />" | |
], | |
"description": "重新定义一个类,可以重写一个类" | |
}, | |
"Override Container": { | |
"prefix": "m2.container.reference", | |
"body": "<referenceContainer name=\"${1:ContainerName}\" />", | |
"description": "引用容器,可以重新设置属性,或者往容器添加新的block" | |
}, | |
"Reference Block": { | |
"prefix": "m2.block.reference", | |
"body": "<referenceBlock name=\"${1:BlockName}\" />", | |
"description": "引用Block,可以重新定义属性" | |
}, | |
"Remove Block": { | |
"prefix": "m2.block.remove", | |
"body": "<referenceBlock name=\"${1:BlockName}\" remove=\"true\" />", | |
"description": "根据{name}删除Block" | |
}, | |
"Create Block": { | |
"prefix": "m2.block.new", | |
"body": "<block class=\"${1:ClassName}\" template=\"${2:TemplatePath}\" name=\"${3:BlockName}\" />", | |
"description": "定义一个Block" | |
}, | |
// | |
"Add module": { | |
"prefix": "m2.module.add", | |
"body": "<module name=\"$0\" />", | |
"description": "模块" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment