Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>OneCodeSnippetsVersion2New to Visual Studio Code? Get it now.
OneCodeSnippetsVersion2

OneCodeSnippetsVersion2

xuanxiao

|
2 installs
| (1) | Free
code snippets for xuanxiao's friends to use
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

onecodesnippets README

这里主要是常用的代码块实现,欢迎大家投稿使用

vue 快捷搜索 vue-${name}

  • vue2 vue2的组件代码块
    "component", "v2c", "vue2"
    
  • vue3 vue3的组件代码块
    "component", "v3c", "vue3"
    
  • vue中 v-for 的template 配置文件
    "v-for","for", "for-template", "for-js"
    

react-management 快捷搜索 react-${name}

  • admin-drawer 后台操作日志弹窗
    "QTB-", "qtb-", "yy", "yy-", "QTB", "log-page", "manage", "log-page-manage", "QTB-log-page-manage"
    
  • admin-drawer 后台版本日志弹窗
    ["QTB-", "qtb-", "yy", "yy-", "QTB", "log-page", "manage", "log-page-manage", "QTB-log-page-manage"],
    
  • admin-drawer 查看数据抽屉
    ["QTB-", "qtb-", "yy", "yy-", "QTB", "detail-data", "QTB-detail-data"],
    
  • admin-drawer 新增编辑表单抽屉组件
    ["QTB-", "qtb-", "yy", "yy-", "QTB", "form", "QTB-form", "yy-form", "yy-QTB-form", "el-form"],
    
  • admin-drawer 数据列表页面组件模板
    ["QTB-", "qtb-", "yy", "yy-", "QTB", "form", "QTB-table", "yy-table", "yy-QTB-table", "el-table"],
    
  • admin-drawer 滚动到第一个错误表单项
    ["QTB-", "qtb-", "QTB", "yy", "yy-", "moveToErr", "QTB-moveToErr"],
    
  • admin-drawer 输入框不允许输入表情方法
    ["QTB-", "qtb-", "QTB", "yy", "yy-", "emoji", "handleFilterEmojiReturn"],
    
  • admin-drawer 方法快捷声明
    ["QTB-", "qtb-", "QTB", "yy", "yy-", "const", "const res = "],
    

css 快捷搜索 css-${name}

  • scrollbar滚动条隐藏样式
    "scrollbar-css", "scrollbar", "scrollbar-js", "scrollbar-hidden"
    
  • flex盒子代码
    "flex-css", "flex", "display", "display-flex"
    
  • 超长省略样式引入
    "css-text","text-overflow-css", "text-overflow"
    
  • 超长省略首部样式引入
    "css-text","text-overflow-css", "text-overflow-direction"
    
  • 多行省略样式引入
    "css-text","text-overflow-css", "text-overflow"
    
  • 背景图样式引入
    "background-image","background", "css-background"
    
  • 固定定位样式
    "position", "fixed"
    
  • 绝对定位样式
    "position","absolute"
    

Enjoy!

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