How do I change language level for all modules in IntelliJ

前端 未结 3 1274
被撕碎了的回忆
被撕碎了的回忆 2021-02-05 02:11

I have a project with MANY modules. We\'re upgrading to Java7, and I want my editor to reflect this. Now all my modules specifically set the language level to Java6, and there a

3条回答
  •  情歌与酒
    2021-02-05 02:25

    In IntelliJ IDEA 14.0, go to File | Project Structure | Modules (Ctrl+Shift+Alt+S).

    The list of modules supports multiple selection so

    • Ctrl click individual modules
    • Shift click range of modules
    • Ctrl-A all modules

    Select in the drop-down menu Language level and choose manually the level or "Use project language level".

    Similarly to change the language level for the project, select project in the ribbon on the left under Project Settings. A drop down menu is available for Project language level. Choose the level needed. This will set the default for all project modules.

    Sources

    • https://www.jetbrains.com/idea/help/project-general-settings-page.html
    • https://www.jetbrains.com/idea/help/modules.html

提交回复
热议问题