Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9087849
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T21:47:32+00:00 2026-06-16T21:47:32+00:00

I want to create live template for setter. I’ve created this template How can

  • 0

I want to create live template for setter.

I’ve created this template
enter image description here

How can I use value of par variable to generate value of var variable? Basically, I want to avoid redundancy here and put name of variable only once and other one will be generated automatically by some algorithm.

UPDATE

I want to clarify a little bit what I want to achieve.

Suppose I want to create setter with name setTime which has parameter time.

public void setTime(long time)
{
    // ...
}

I don’t want to type “time” twice – capitalized and non-capitalized. I want to type just parameter name so method name will be generated automatically.

UPDATE (Answer)

Turned out that variable order is important. This is final result of what I want

enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T21:47:33+00:00Added an answer on June 16, 2026 at 9:47 pm

    You can use the soutv as an example, notice how it defines a copy of a variable:

    copy

    It’s also possible to define custom expression for live templates via plugins or Groovy code:
    How can i add custom expression functions for Live templates in Intellij.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i want create Dynamic Slideshow in Jquery i'm Write this code var ctx =
I want to create a live, checkers-like app, which will work like this: There
I want create an application with animate button? how can i do? after click
I have a flash media server. I want to create a live video chat
I need your help. I need to create live wallpaper like this : Bikini
I want to create a line chart. Currently my graph look like this The
jQuery('#additional-channels-list select').live('change', function(){ var current_id = parseInt(jQuery(this).val()); select_values.push(current_id); console.log(select_values); console.log(jQuery.inArray(current_id, select_values)); }); I want
I want to create a public live chat application using rails 3. I found
I want to run: $(.left).load(created.php); after: $(#placeholder).load(create.php) I tried the following, but it didn't
I want to create a ListBox that looks like the Windows Live Tiles .

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.