djc-code-snippets READMESnippets for Daojucheng project FeaturesSnippets这个插件包含了所有的vue中和依赖native对应的常用代码片段。插件的代码片段如下表格所示,你不需要记住什么snippets,就像往常一样在 vscode 里写代码就好了。比如你可以键入 d-sf 然后按上下键选中 d-sf 再按Enter键,就输入了smartFetch的代码段了。 具体代码段如下表所示: daojucheng Snippets Prefix JavaScript Snippet Content & explain d-require-module 引入weex的module d-sf 请求smartFetch d-fc 导入一个function d-broadcast-post broadcast的发送 d-broadcast-observer broadcast的监听 d-globalEvent-post globalEvent的发送 d-globalEvent-listen onMounted(() => {}) d-enum-custom 自定义vue的枚举类型 d-ev-click click打点(不带额外参数) d-ev-click-ext click打点(带额外参数) RequirementsIf you have any requirements or dependencies, add a section describing those and how to install and configure them. Extension SettingsInclude if your extension adds any VS Code settings through the For example: This extension contributes the following settings:
Known IssuesCalling out known issues can help limit users opening duplicate issues against your extension. Release NotesUsers appreciate release notes as you update your extension. 0.0.2import some snippets Working with MarkdownNote: You can author your README using Visual Studio Code. Here are some useful editor keyboard shortcuts:
Enjoy! |