Configure Chameleon to recognize outdated terminology
In this article you will learn how to configure outdated terminology in the Chameleon plugin for the IntelliJ Platform.
Prerequisites
You need:
- A copy of a Chameleon distribution. Apply for a 30-day free trial in case you donβt currently have a distribution.
- To install Chameleon
How to configure
In order to ease refactoring outdated terminology you should configure them in Chameleon. These are the steps to take:
- Open the
Preferencespanel. -
Navigate to the
Tools>Legacy Termssection in the left column.
-
Add a Legacy Term (
Shift β§+N) by clicking on theπbutton (right next to the-button).
-
After selecting a Legacy Term from the list, add a Replacement (
β+N) by clicking on the+button.
-
You can add multiple Replacement options to a Legacy Term. After selecting a Legacy Term from the list, add another replacement (
β+N) by clicking on the+button again.
-
You can add another Legacy Term (
Shift β§+N) by clicking on theπbutton (right next to the-button).
-
Remove a Legacy Term and all Replacement options by selecting a Legacy Term from the list and then Removing it (
β+N) by clicking on theβbutton.
Next steps
Now that Chameleon understands which outdated terminology you want to get rid of, it is time to start refactoring.
Troubleshooting
If you encounter any issues with configuring outdated terminology, then the most pragmatic way to resolve them is to remove the .idea/legacy-term.xml configuration file in the root of your project.
Now you should be able to reconfigure Chameleon.
Copyright © 2023 JetBrains s.r.o., used with permission.