Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>kdamNew to Visual Studio Code? Get it now.
kdam

kdam

qunhe_kdam

|
45 installs
| (1) | Free
kujiale dev assistant manager
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

kdam

功能列表

  1. 同步 Pub Config 到本地,输入时进行提示
  2. 同步 gitlab 仓库内的代码片段到本地,方便代码片段的更新和贡献

配置方法

插件有两种配置方式

  1. 通过命令的方式 ctrl(cmd) + shift + p 执行插件提供的命令进行配置
  2. 在项目内的 .vscode/settings.json 文件中写入 kdam.pub_config_records 和 kdam.snippet_records 字段进行配置,保存后插件会根据配置自动拉取远程代码片段或者 Pub Config 到本地
// 复制以下内容到 .vscode/settings.json 保存,快速体验
"kdam.snippet_records": [
  {
    "gitlab": "https://gitlab.qunhequnhe.com",
    "repo": "10382"
  }
],
"kdam.pub_config_records": [
  {
    "prefix": "PAGE_CONFIG",
    "configNameInput": "auth_config.page"
  },
  {
    "prefix": "FUNC_CONFIG",
    "configNameInput": "auth_config.func"
  }
]

提供的命令列表

  1. syncSnippets - 同步代码片段
  2. updateSnippets - 更新代码片段
  3. syncPubConfig - 同步 Pub Config
  4. updatePubConfig - 更新 Pub Config
  5. searchPubConfig - 搜索 Pub Config

功能示意

  • 同步 Pub Config 后的输入提示
    completion
  • 鼠标上浮提示
    hover
  • 搜索已同步的 Pub Config,点击搜索结果复制到剪切板
    search
  • 同步代码片段后快速输入
    snippet

Enjoy!

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