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

beast-snippets

yanxingzhe

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

beast-snippets

基于 beast 组件库的 vscode 插件,目前收录了 beast-core、beast-mobile 的所有组件。

Usage

1、安装方式

vscode中搜索 beast-snippets

2、使用方式:

(1)引入包

  • 输入 imbc 并回车,出现 import { 光标位置 } from '@msfe/beast-core'
  • 输入 imbcbutton 并回车,出现 import { Button } from '@msfe/beast-core'
  • 输入 imbm 并回车,出现 import { 光标位置 } from '@msfe/beast-mobile'
  • 输入 imbmbutton 并回车,出现 import { Button } from '@msfe/beast-mobile'

(2)jsx中使用组件

输入 bcbutton(移动端为 bmmobile) 并回车,出现 <Button type="primary">光标位置</Button>

所有代码片段内容,详见 snippets/snippets.json

开发

  • 打包:vsce package(不打包 也可直接发布)
  • 发布:
    • 方式 1: yarn patch, yarn minor, yarn major分别发小、中、大版本号
    • 方式 2: vsce publish + 指定版本号
  • For 维护者:
    • 由于 token 的有限期最多一年,如果已知的 token 过期了且无法联系到燕行者,可以参考 https://juejin.im/post/6844903937288454151 重新创建插件

Develop guideline

  • vscode: publishing-extensions
  • 实例演示 vscode 插件开发 & 发布全流程
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft