Eclipse: change name of existing package with classes inside

后端 未结 6 1187
清歌不尽
清歌不尽 2020-12-02 18:32

In Eclipse, is it possible to change name of the package if it has name (default package) and has classes inside it?

6条回答
  •  独厮守ぢ
    2020-12-02 18:54

    Yes.

    Either just right-click the class and choose Refactor->Rename, or insert the appropriate package foo.bar at the top and use Ctrl-1 to quickfix.

提交回复
热议问题