Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Front-End HelperNew to Visual Studio Code? Get it now.
Front-End Helper

Front-End Helper

mengfei0053

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

fehelper README

根据接口配置生成 mock 文档

命令及使用方法

包含命令

  • CreateServices
  • PushToYapi

必须在项目目录下包含 feconfig.json 或 feconfig.js 的配置文件,命令才会生效

配置文件字段格式如下接口

interface FeConfigJson {
  YqbApiConfig?: {
    entry: string;
    /**
     * ${ServerName} 当前ServerName
     * ${ControllerName} 当前ControllerName
     */
    serviceHeader?: string;
  };
  ServiceConfig: string;
  YapiConfig: {
    yapi: string;
    yapiAuth: {
      email: string;
      password: string;
    };
    yapiGroupId: number;
  };
}

extensionPack 同时安装的其他插件及默认配置

    "formulahendry.auto-rename-tag",
    "ionutvmi.path-autocomplete",
    "eamodio.gitlens",
    "dbaeumer.vscode-eslint",
    "esbenp.prettier-vscode"

包含默认配置

{
  "explorer.confirmDelete": false,
  "emmet.triggerExpansionOnTab": true,
  "emmet.includeLanguages": {
    "javascript": ["javascriptreact", "typescriptreact"]
  },
  "files.autoSave": "onFocusChange",
  "javascript.implicitProjectConfig.experimentalDecorators": true,
  "auto-rename-tag.activationOnLanguage": ["*"],
  "javascript.updateImportsOnFileMove.enabled": "always",
  "[typescriptreact]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[typescript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[javascript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "eslint.alwaysShowStatus": true,
  "eslint.validate": ["javascript", "javascriptreact", "typescript"],
  "eslint.enable": true,
  "editor.colorDecorators": false,
  "editor.renderIndentGuides": true,
  "editor.formatOnSave": true,
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
  },
  "editor.snippetSuggestions": "top"
}
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft