Home  >  Q&A  >  body text

java - IntelliJ IDEA我在一个空的文件夹package下面建了一个新的package,怎么不让它们显示在一行?


如图,我想在model.resource的文件夹的下面再创建一个文件夹declarationPlan,但是他们会出现在同一行。问题是我还想在model.resource的文件夹下面再建一个文件夹,那么怎么把model.resource和declarationPlan变成这样子呢?

高洛峰高洛峰2721 days ago550

reply all(3)I'll reply

  • 怪我咯

    怪我咯2017-04-18 10:34:29

    reply
    0
  • ringa_lee

    ringa_lee2017-04-18 10:34:29

    This is like this. When you create a new folder, don’t name the new folder directly, write the full name. For example, in your example
    You want to create a new folder under model.resource at the same level as declarationPlan. Suppose you The newly created folder is called test. When you right-click model.resource to create a new one, just enter the name of the folder as model.resource.test, so that it can automatically put declarationPlan and test at the first level...

    reply
    0
  • 阿神

    阿神2017-04-18 10:34:29

    Thanks for the invitation!
    I don’t know exactly where the shortcut key settings of IntelliJ IDEA are. The style seems to be similar to eclipse. I can only give you an eclipse setting method, as shown below

    reply
    0
  • Cancelreply