How to fix package names in IntelliJ?

前端 未结 2 1563
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-01 11:04

Is it possible to fix all the package names in a given folder in IntelliJ?

If files are manually imported into IntelliJ, and their package names are all wrong (inclu

2条回答
  •  无人及你
    2021-01-01 11:42

    In project view change layout to Flatten packages. Then in same menu unselect Hide empty middle packages. Then create the new package you want. And then using drag'n'drop move the root package which contains your code to a newly created package (when the pop-up appears, select the second option, i.e. move everything ...). Delete old, unused packages

提交回复
热议问题