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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T10:30:44+00:00 2026-06-05T10:30:44+00:00

Is there a feature in netbeans that’ll let me easily config and replace all

  • 0

Is there a feature in netbeans that’ll let me easily config and replace all occurrences of “system.out” and “e.printstacktrace” to “logger.info/error/log” ?

I used find/replace to get rid of all the “system.out”s, and now i need to get rid of all the “printstacktraces”, I can probably write a parser and read all my java files. But before I do that I just want to know if something like this is already implemented in netbeans, currently in netbeans 7.1 hints, they only show you where these things are, but I couldn’t find an option for code refactoring.

Thanks

  • 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-05T10:30:45+00:00Added an answer on June 5, 2026 at 10:30 am

    The following will open each .java file that contains printStackTrace in vim.

    Of course you can substitute vim with your text editor of choice:

    alias javafind='find . -name '\''*.java'\'' -print | xargs fgrep -il'
    vim `javafind printStackTrace`
    

    The first command creates an alias that returns all java files (starting in the current directory) that contain the first argument.

    The second command says: open each file that contains the term printStackTrace with vim.

    An even better solution would be to use sed to intelligently search/replace with a regex.

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

Sidebar

Related Questions

I am in love with Netbeans Source->Format feature. Is there any way to get
Is there any feature in IIS 7 that automatically deletes the logs files older
Is there a feature that displayable tooltip for disabled commandButton in primefaces.
We are in the process of refactoring some code. There is a feature that
In TextMate there is a feature called Go to file that is used for
Netbeans has a nice Step Into feature where if there are multiple method calls
I've used XCode and Netbeans, and I've noticed that they have a feature to
Is there a feature in mercurial similar to subversion's propset command? What I really
There is a feature in Delphi IDE (Borland Developer Studio 2006) which allows to
There's a feature of the Apple Objective-C language which is really useful to me:

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.