Codyfier is a code indenter and beautifier. It correctly indents your code with 4 spaces and aligns the comments at the end of the longest line of code. You can also visit the website!
If you are using Windows follow the instructions under Using Codifier.jar. If you are a Mac or linux user it is easier Using Codifier.sh
- Download the Codifier.jar
- Open a cmd
- Navigate to the directory where the jar file is located
- Then type:
java -jar "file's path"/Codyfier.jar "code's path"/code.txt
- Download the Codifier.zip
- Unzip the files
- Open a terminal
- Navigate to the unzipped folder
- Then type:
sh Codyfier.sh
important: don't remove the shell file from the folder!
- Java 1.8
- Java Virtual Machine
import java.lang.Thread;//Use External class
// a comment
// an other comment
class Countdown {
public static void main( String args[] ){// Main entry point
int countdown=10;// Start from 10
while ( countdown > 0 )// While greater than 0
{
for (int i = 0; i < 9; i++)// hello its working
System.out.println(countdown);// Write // contents of // countdown trying to have // in a comment
if ( countdown == 3 )// If equal to 3
{ // open comment
System.out.println("// \"Ignition\" } // "); // Write Ignition
}
countdown--;// Decrement countdown by 1
try {
Thread.sleep( 100 );// 1000 milliseconds delay
}
catch( InterruptedException e ) {}
}
System.out.println( "Blast Off");// Write Blast off
}
}
import java.lang.Thread; //Use External class
// a comment
// an other comment
class Countdown {
public static void main( String args[] ){ // Main entry point
int countdown=10; // Start from 10
while ( countdown > 0 ) // While greater than 0
{
for (int i = 0; i < 9; i++) // hello its working
System.out.println(countdown); // Write // contents of // countdown trying to have // in a comment
if ( countdown == 3 ) // If equal to 3
{ // open comment
System.out.println("// \"Ignition\" } // "); // Write Ignition
}
countdown--; // Decrement countdown by 1
try {
Thread.sleep( 100 ); // 1000 milliseconds delay
}
catch( InterruptedException e ) {}
}
System.out.println( "Blast Off"); // Write Blast off
}
}
This project is licensed under the MIT License - see the LICENSE file for details