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 5838121
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T11:26:03+00:00 2026-05-22T11:26:03+00:00

What are the ways in Intellij IDEA to automate repeated editing operations? For example

  • 0

What are the ways in Intellij IDEA to automate repeated editing operations?

For example I have a file with few dozens of entries like the following:

public static final Test1 = new Test(A a1, B b);
public static final Test2 = new Test(A a2, B b);
public static final Test3 = new Test(A a3, B b);
public static final Test4 = new Test(A a4, B b);

I would like to replace all B b in a file, and pass a null parameter instead. It is easy to do in editors like gvim where normally you would record a macro and repeat it. What are the usual ways to do such automation where refactoring capabilities of Intellij are limited?

  • 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-05-22T11:26:04+00:00Added an answer on May 22, 2026 at 11:26 am

    If you can identify a pattern you can always copy the text over to textpad or something similar and do a regex replace then copy the text back. I do it very often.

    For your particular example, try this in textpad –

    1. F8 – for replace dialog
    2. Find What: (Test([^,])+([^)]+)
    3. Replace with: \1, null
    4. Check Regular Expression checkbox
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There are a few ways to get class-like behavior in javascript, the most common
What ways do I have for creating a unit test template like this? I'm
What ways do I have in .net to run code from string? Console.WriteLine(Compile(1 +
Are there ways to test my error_handlers setup in the app.yaml file, especially the
I have seen 2 ways to create button. UIButton *button = [[UIButton alloc]initWithFrame:CGRectMake(10, 220,
I am looking into ways of updating a live tile frequently - for example
What ways have people found/used to add functionality to a .NET/C# app without recompiling?
any ways to put into html using css upper or lower indecies like: ¹
Was looking at ways to clean up the following link : <a href=javascript:void((function()%7Bvar%20e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','http://assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)%7D)());><img src=/images/Social%20Media/pinterest.png/></a>
I have researched different ways of creating arrays and how to use lists, but

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.