Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>水哥New to Visual Studio Code? Get it now.
水哥

水哥

shuigehaowan

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

对应的文件右键 水哥复制 可以复制当前路径 支持vue 跟uniapp 项目

在更目录下面新建sg.json 可以配置自动引入功能,

{
  "script": {
    "router": {
      "name": "{router,route}",
      "value": "@/router",
      "const": "const route = new Router,\n const router = new Router()"
    },
    "route": {
      "name": "{router,route}",
      "value": "@/router",
      "const": "const route = new Router\nconst router = new Router()"
    },
    "ElMessage": {
      "name": "{ ElMessage, ElMessageBox }",
      "value": "element-plus",
      "const": ""
    },
    "ElMessageBox": {
      "name": "{ ElMessage, ElMessageBox }",
      "value": "element-plus",
      "const": ""
    }
  }
}

代码片段

css 部分  

	sg-1行溢出隐藏

	sg-2行溢出隐藏
script 部分

sg-res 接口try模板

sg-form区域

sg-时间范围
sg-下拉	
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft