Question 1: Can IntelliJ be installed to automatically indent the body of the code when creating a new line?
Here is an example of what I mean:
I have this method:
public static void main(String[] args)
{
System.out.println("Hi there.");
}
After pressing the return key after entering the expression, I get the following:
public static void main(String[] args)
{
System.out.println("Hi there.");
}
I would like this to do the following:
public static void main(String[] args)
{
System.out.println("Hi there.");
}
I was unable to find a setting anywhere in the Settings section that would make this the default behavior. Does it exist, and will I skip it, or am I looking for a unicorn?
Question 2: Is it possible to cancel the body of the body by default? If so, where can it be found?
Example:
After using the "Reformat Code ..." command, I get the following:
public static void main(String[] args)
{
System.out.println("Hi there.");
}
Is it possible to install IntelliJ for this, and if so, where can I find this option ?:
public static void main(String[] args)
{
System.out.println("Hi there.");
}
, .
. .