I am using IntelliJ 14 and my machine has JDK 7 installed. However, everytime creating new project, language level is 5.
Although i can change by going to Project Settings->Project-> Project Language Level and Project Settings->Modules->[Module Name]->Sources->Language Level, it takes time to do that for every project.
Can IntelliJ auto-detect my JDK and choose correct default Language Level or there's a default setting for Language Level?
This setting tells all the facilities of the compiler that would be available for the project. For e.g. setting the language level to JDK 5 will allow the IntelliJ to recognize keywords such as enum that are present within the source code.
To configure project settings, select IntelliJ IDEA | Preferences on macOS or File | Settings on Windows and Linux from the main menu. Alternatively, you can press Ctrl+Alt+S to show the IDE settings. icon. Other settings are global and apply to all existing projects.
Did you check IntellJ documnentation before posting here?
Is it not this what are you searching for: https://www.jetbrains.com/idea/help/configuring-global-project-and-module-sdks.html
Edit: The correct answer is File -> Other Settings -> Default Project Structure
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With