63193

Live Template for Fluent-API Builder in IntelliJ

Question:

If I wanted to generate a "fluent builder" in IntelliJ anyone know where to edit the live template that is used in the <a href="http://www.jetbrains.com/idea/webhelp/replace-constructor-with-builder.html" rel="nofollow">Replace Constructor with Builder</a> feature?

The above mentioned feature will automatically build a Builder pattern object though with the common setAttribute naming convention instead of a more fluentlike naming pattern of .attribute or .withAttribute that I am looking for.

Ultimately I would like to just be able to change a setting / template that would be used in rendering the code similar as to how you can change the format of various other auto generated code within IntelliJ.

Answer1:

install plugn in 'Generate Fluent interface'

<a href="http://plugins.jetbrains.com/plugin/6141?pr=idea" rel="nofollow">http://plugins.jetbrains.com/plugin/6141?pr=idea</a>

Recommend

  • Where should I put testcode for an Eclipse plugin fragment?
  • Entity Framework v4 and underscores in column names
  • Placeholder Text
  • Getter and Setter conventions in go lang
  • Why does the “name” parameter to __setattr__ include the class, but __getattr__ doesn't?
  • h2oensemble Error in value[[3L]](cond) : argument “training_frame” must be a valid H2O H2OFrame or i
  • Group by month+year with counts
  • How to debug 'value of ESP was not saved across function call' error?
  • Oracle SQL: Receiving 'no matching unique or primary key' error and don't know why
  • How to make stdcall from Go
  • File extension of zlib zipped html page?
  • Failed to find version-tag string. File must be updated
  • Alamofire and Reachability.swift not working on xCode8-beta5
  • What is the correct way to synchronize a shared, static object in Java?
  • Fail:(TESTMODE) Transactions of this market type cannot be processed on this system
  • ThreadStatic in asynchronous ASP.NET Web API
  • Why use database factory in asp.net mvc?
  • C# program and C++ DLL compiled for 32-bit system crash on 64-bit system
  • Abort upload large uploads after reading headers
  • Custom Tabgroup Appcelerator
  • iOS: Detect app start via notification press
  • VSO Build — Response status code does not indicate success: 404 (Not Found)
  • Initializer list vs. initialization method
  • Installing Hadoop, Java Exception about illegal characters at index 7?
  • java.lang.NoClassDefFoundError: com.parse.Parse$Configuration$Builder on below Lollipop versions
  • What is Eclipse's Declaration View used for?
  • swift auto completion not working in Xcode6-Beta
  • Excel - Autoshape get it's name from cell (value)
  • WinForms: two way TextBox problem
  • Convert array of 8 bytes to signed long in C++
  • Akka Routing: Reply's send to router ends up as dead letters
  • R: gsub and capture
  • AT Commands to Send SMS not working in Windows 8.1
  • Rails 2: use form_for to build a form covering multiple objects of the same class
  • What are the advantages and disadvantages of reading an entire file into a single String as opposed
  • -fvisibility=hidden not passed by compiler for Debug builds
  • how does django model after text[] in postgresql [duplicate]
  • How do I configure my settings file to work with unit tests?
  • Is it possible to post an object from jquery to bottle.py?
  • Net Present Value in Excel for Grouped Recurring CF