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

OneCodeSnippets

xuanxiao

|
12 installs
| (0) | 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中router的配置文件
    "vue-router", "router", "router-js",  "vue-router-js"
    
  • vue中 v-for 的template 配置文件
    "v-for","for", "for-template", "for-js"
    

javascript 快捷搜索 js-${name}

  • share 常用分享的组件代码块
    "component", "share", "share-js"
    
  • swiper 常用swiper的组件代码块
    "template", "swiper", "swiper-js"
    
  • env 常用环境判断的组件代码块
    "component", "env", "env-js"
    
  • app-navbar 常用navbar样式和标题设置代码块
    "component", "app-navbar", "navbar-js"
    

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

  • admin-modal 后台弹窗组件代码块
    "component", "react-modal","admin-modal", "react-modal-component"
    
  • admin-list 后台列表组件代码块
    "component", "react-list", "admin-list", "react-list-template"
    
  • admin-form 后台表单组件代码块
    "component", "admin-form", "react-form", "react-form-component"
    
  • admin-hooks-component hooks 后台组件代码块
    "component", "admin-hooks", "react-hooks", "react-hooks-component"
    

css 快捷搜索 css-${name}

  • scrollbar滚动条隐藏样式
    "scrollbar-css", "scrollbar", "scrollbar-js", "scrollbar-hidden"
    
  • flex盒子代码
    "flex-css", "flex", "display", "display-flex"
    
  • DIN字体样式引入
    "font", "font-family", "din", "font-face"
    
  • 超长省略样式引入
    "css-text","text-overflow-css", "text-overflow"
    
  • 多行省略样式引入
    "css-text","text-overflow-css", "text-overflow"
    
  • 背景图样式引入
    "background-image","background", "css-background"
    

vscode

  • vscode settings设置文件,统一设置配套实现
    "settings", "settings-js", "vscode-settings",  "vscode-settings-js"
    

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft