Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I make IntellIJ use JVM options for all main files in a project?

I can configure a main file to use natives needed, but in my project there are multiple main functions so I need all the files to to use the JVM option when I can choose to debug whichever one I want without having to create a configuration for each one

like image 460
Dan Webster Avatar asked Feb 18 '13 02:02

Dan Webster


People also ask

Where is the JVM options file?

The default location of this file is config/jvm. options (when installing from the tar or zip distributions) and /etc/elasticsearch/jvm.

How do I change global 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

You can change the configuration under Defaults node (Templates in the new versions), all the new configurations will inherit its settings. Make sure to change the correct default configuration type, Application is most likely what you need.

application

Refer to the documentation for details.

like image 184
CrazyCoder Avatar answered Sep 27 '22 16:09

CrazyCoder