Skip to content

georgelivas/Codyfier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image of codifier

What is Codyfier?

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

Using Codifier.jar

  1. Download the Codifier.jar
  2. Open a cmd
  3. Navigate to the directory where the jar file is located
  4. Then type:
java -jar "file's path"/Codyfier.jar "code's path"/code.txt 

Using Codifier.sh [recommended for mac/linux]

  1. Download the Codifier.zip
  2. Unzip the files
  3. Open a terminal
  4. Navigate to the unzipped folder
  5. Then type:
sh Codyfier.sh

important: don't remove the shell file from the folder!

System Requirements

  • Java 1.8
  • Java Virtual Machine

Results

Input

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
}
}

Output

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
  }
}

Licence

This project is licensed under the MIT License - see the LICENSE file for details