Eclipse batch substitution, modifying variable names or words (two methods)

Source: Internet
Author: User

First (commonly used):

① Double-click to select the variable name ID and right-select the rename in refactor

After ②, as shown, the Red arrow with the box is to select the modified variable name, at this time to modify the contents of the prompt box, followed by the box is also modified,

  And the blue arrow of the unselected word of the same name will not be modified, which is the difference from the second method

The second type:

Press ctrl+f, pop-up below the right interface, enter the ID to look for, replace with ID, under Options to check the two arrows below the two, click Replace All replacement

Note the difference from the first of the above: The blue arrows below will also be modified

Eclipse batch substitution, modifying variable names or words (two methods)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.