Code Monkey home page Code Monkey logo

feconfig's Introduction

特性

  1. 支持项目配置代码片段(code snippets)路径,并在编辑区域进行代码提示
  • 在workspace的settings.json文件中增加fe.snippets配置对象,将需要配置的代码片段名称和路径以key: value的形式录入。
  1. 支持项目配置统一插件并自动安装
  • 在workspace的settings.json文件中增加fe.plugin配置数组,将需要配置的插件名称录入。
  1. 支持项目统一vscdoe配置
  • 在workspace的settings.json文件中增加fe.configure配置对象,将需要配置vscode配置录入。
"fe": {
  // 插件配置
  "plugin": [
      "eamodio.gitlens",
      "shengchen.vscode-leetcode",
      "octref.vetur"
  ],
  // vscode配置
  "configure": {
      "editor.tabSize": 4,
      "files.eol": "\r\n",
      "files.associations": {
          "*.wpy": "html",
          "*.cjson": "jsonc",
          "*.wa": "html",
      }
  },
  // 代码片段配置
  "snippets": {
      "WaButton": "src/snippets/index.wa",
      "WaPage": "src/snippets/page.wa"
  }
},

用法

  1. 插件的安装和vscode的配置需要通过vscode界面输入shift + commad + p调出命令行输入FECONFIG完成。
  2. 代码片段则通过路径配置完成后即可使用,目前只支持在.html .vue .js .ts .jsx文件格式完成自动提示。 使用方法

版本支持

  • vscode版本大于等于1.37.0

FAQ

在使用该插件时候,请确保环境变量已经配置。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.