Page 1 of 1

How do I move the text to the right In cmd?

Posted: Fri Feb 12, 2010 7:43 am
by Chrillenn
This code has been done in textpad and I'm wondering.

How do i move all the text to the right when i press Ctrl+2 so it looks nicer?



public class Ovning2_6


{
public static void main(String args[])
{

for (int i=1; i<=12; i++) //Start ; villkor; öka antal steg


{

System.out.print("\n"+i);

for (int j=1; j <=12; j++)

{
int k=i*j;
System.out.print("\t"+k);
}
System.out.println( );
System.out.println( );


}

}
}

Posted: Sat Feb 13, 2010 8:35 am
by MudGuard
by assigning Ctrl+2 to the command edit - indent.

(You could use Ctrl+i instead ...)