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

zpm

Mr.Leo

|
238 installs
| (1) | Free
常用的Git操作及代码片段
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

zpm README

应用商店地址: https://marketplace.visualstudio.com/items?itemName=MrLeo.zpm

参考地址

  • 插件市场 / 插件管理
  • vscode 插件开发
  • vscode api
  • 使用 Webpack 优化 VS Code 插件加载性能

创建 tag

为 git 仓库当前分支版本创建格式为 {环境}-v{版本号}-{日期} 的 tag,如:pre-v0.0.1-20190315

删除远端不存在的 tag

代码片段

javascript

  • eslint

    /* eslint-disable */
    
    /* eslint-enable */
    
    // eslint-disable-line
    
    // eslint-disable-next-line
    
  • cli

    ctx.log.info(`[standout] $1 -> `, $2)$3
    
  • cle

    ctx.log.error(`[standout] error -> $1`, err)$2
    
  • zpthrow

    throw new ZPError({ code: ${1:res.code || 500}, message: ${2:res.message || '出错了'}, taskId: ${3:res.taskId || ctx.request.headers.get('x-zp-request-id') ||''} })
    
  • cl

    console.log(`[$1]$2 -> $3`,$4)$5
    
    console.log(`%c[$1]$2 -> $3`,'color:#1B8BFF;',$4)$5
    
  • cg

    console.groupCollapsed(`------------------> $1 <------------------`)
    console.log(`[${2:LOG}]$3 -> $4`,$5)$6
    console.groupEnd()
    

css

  • stylelint

    /* stylelint-disable */
    
    /* stylelint-enable */
    
    // stylelint-disable-line
    
    // stylelint-disable-next-line
    

开发

开启本地文件变更监听

npm run watch

开启调试模式Extension Tests

h26jsomdth3cwuwew7sunc7qou4f73wzhy6e6iyt3hhjyefg37ja

Features

Describe specific features of your extension including screenshots of your extension in action. Image paths are relative to this README file.

For example if there is an image subfolder under your extension project workspace:

![feature X](images/feature-x.png)

Tip: Many popular extensions utilize animations. This is an excellent way to show off your extension! We recommend short, focused animations that are easy to follow.

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.

1.0.0

Initial release of ...

1.0.1

Fixed issue #.

1.1.0

Added features X, Y, and Z.


Following extension guidelines

Ensure that you've read through the extensions guidelines and follow the best practices for creating your extension.

  • Extension Guidelines

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

For more information

  • Visual Studio Code's Markdown Support
  • Markdown Syntax Reference

Enjoy!

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