Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>djc-code-snippetsNew to Visual Studio Code? Get it now.
djc-code-snippets

djc-code-snippets

djc-code-snippets

|
22 installs
| (0) | Free
djc-code-snippets
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

djc-code-snippets README

Snippets for Daojucheng project

Features

Snippets

这个插件包含了所有的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打点(带额外参数)

Requirements

If you have any requirements or dependencies, add a section describing those and how to install and configure them.

Extension Settings

Include if your extension adds any VS Code settings through the contributes.configuration extension point.

For example:

This extension contributes the following settings:

  • myExtension.enable: enable/disable this extension
  • myExtension.thing: set to blah to do something

Known Issues

Calling out known issues can help limit users opening duplicate issues against your extension.

Release Notes

Users appreciate release notes as you update your extension.

0.0.2

import some snippets


Working with Markdown

Note: You can author your README using Visual Studio Code. Here are some useful editor keyboard shortcuts:

  • Split the editor (Cmd+\ on macOS or Ctrl+\ on Windows and Linux)
  • Toggle preview (Shift+CMD+V on macOS or Shift+Ctrl+V on Windows and Linux)
  • Press Ctrl+Space (Windows, Linux) or Cmd+Space (macOS) to see a list of Markdown snippets

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft