Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you input command line arguments in IntelliJ IDEA?

I usually input command line arguments in Eclipse via run configuration. But I don't know how do achieve the same task in IntelliJ IDEA.

like image 339
sungkwangsong Avatar asked Jan 14 '10 17:01

sungkwangsong


People also ask

How do you enter command line arguments?

If you want to pass command line arguments then you will have to define the main() function with two arguments. The first argument defines the number of command line arguments and the second argument is the list of command line arguments.

How use IntelliJ command line?

Opening a Terminal Window We can open the terminal window with ⌥F12 on macOS, or Alt+F12 on Windows and Linux. The terminal supports all the same commands that the operating system supports. and press enter. When MongoDB is running in the terminal session, we can go back to writing the application code in the editor.

Where do I put VM arguments in IntelliJ?

From the main menu, select Help | Edit Custom VM Options. If you do not have any project open, on the Welcome screen, click Configure and then Edit Custom VM Options. If you cannot start IntelliJ IDEA, manually copy the default file with JVM options to the IntelliJ IDEA configuration directory.

How do I add shorten command line arguments in IntelliJ?

In the Run/Debug Configuration dialog, a new field appeared: Shorten command line. The new field allows you to choose the way the IDE will shorten the command line from a drop-down list: None: This is the default option. The IDE doesn't shorten the long classpath.


1 Answers

Windows, Linux, some Macs:

ALT+SHIFT+F10, Right, E, Enter, Tab, enter your command line parameters, Enter. ;-)

Mac with "OS X 10.5" key schema:

CTRL+ALT+R, Right, E, Enter, Tab, enter your command line parameters, Enter.

like image 195
Nowaker Avatar answered Sep 30 '22 15:09

Nowaker