Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Configure default Language Level on IntelliJ

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?

like image 228
Khoa Bui Avatar asked Jul 24 '15 23:07

Khoa Bui


People also ask

What is language level in IntelliJ?

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.

How do I change project settings in IntelliJ?

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.


1 Answers

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

like image 130
ap0calypt1c Avatar answered Sep 30 '22 00:09

ap0calypt1c