IDEA 2022 未使用变量 变色不生效


原因是:功能被取消,重新选择使用此功能即可。




左侧选择 Editor 下的 Inspections,右侧输入 Unused 即能看到Java 下的列表,勾选 Unused declaration 即可。