GithubHelp home page GithubHelp logo

genallsetter2kt's Introduction

GenAllSetter

Build Version Downloads

这是一个快速调用Java对象的所有Set方法的插件,它可以让你告别手动挨个调用赋值语句的痛苦,避免遗落并可以减少工作量。注意,该插件仅适用于Android Studio 和 Intellij IDEA。

Installation

  • Using IDE built-in plugin system:

    Preferences > Plugins > Marketplace > Search for "GenAllSetter" > Install Plugin

  • Manually:

    Download the latest release and install it manually using Preferences > Plugins > ⚙️ > Install plugin from disk...

Usage

热键

你只需要记住Generate的热键即可,在mac上为⌘ + N, 在Windows上为Alt + Insert

演示

Generate All Setter

如果只是想调用Java对象的所有Set方法,你可以这样做,在new对象的语句上唤出Generate菜单,选择 Generate All Setter

set

Generate All Setter With Default Value

Generate All Setter 不会帮你填写内容,如果你想自动填写默认值,你可以选择Generate All Setter With Default Value.

set 默认值

Generate All Setter And Getter

插件还提供了从当前方法内部搜寻可以生成Get方法的参数或者是本地变量。勾选后,插件会在参数或本地变量中寻找同名同类型的成员变量并自动填充get方法,达到类似于BeanUtils的效果。这对于对象转换来说很有用

set and get

Generate All Builder

除了set方法以外,插件还添加了对常见的Lombok @Builder 链式赋值的支持,你仅仅需要在Object.builder()上唤起Generate菜单,选择你想要的功能即可。

ezgif.com-video-to-gif

如果你觉得这个插件不错的话?

  • 请给我个小星星
  • 分享给别人,让更多人知道这个插件。

genallsetter2kt's People

Contributors

actions-user avatar vigor-yuan avatar

Watchers

 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.