Giter Site home page Giter Site logo

protocodegen's Introduction

proto3代码生成器

支持jetbrains 旗下所有的ide

例如:

  • idea 生成java代码
  • rider 生成csharp代码
  • 等等你自己探索吧

可以Plugins里面搜索:protocodegen 进行安装

安装插件后如何使用

1. 你需要把你的proto文件放在一个文件夹,而且需要这个文件夹名称包含 proto 关键字

例如下图: 我把希望生成代码的proto文件和它所引用到的 统统都放在了 protofiles文件夹

image

2. 你需要在这个文件夹下面放一个 proto.properties文件

配置内容如下:

Key Value
outFolder 代码生成的存放目录, 例如:../src/java (相对于文件夹的相对路径)
lang 默认: java

image

3. 在文件夹点击右键 你会发现 一个 ProtoCodeGen 功能键

image

enjoy

protocodegen's People

Contributors

yuzd avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

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.