OTW Formatter Plugin |
Shad Stafford OneTrueWay@techshadow.com |
This plugin is my response to the religious wars about code formatting styles. It formats the current buffer of Java code according to the One True Way of formatting code and provides no options to lead you astray from the One True Way. Note that after I released this plugin I discovered that others use the phrase "one true way" to refer to an entirely differnt style of code formatting. This made it even more amusing for me.
Here is a sample of what code formatted using the One True Way looks like:
public class HelloWorld extends Object
{
public static void main(String args)
{
if (args.length == 1)
{
if (args[1].equals("Hello"))
{
System.out.println("Hello World!");
}
else if (args[1].equals("Goodbye"))
{
System.out.println("Goodbye World!");
}
else
{
System.out.println("Whatever.");
}
}
}
}
After proper installation you should see a new menu item "OTW Formatter" under the "Plugins" menu. This menu has two choices: "Format Buffer" and "Format Selection Only".
The formatter will do its best to format the code even if there are syntax errors. This can lead to some odd looking results and can potentially thoroughly corrupt your code.
There are no options for configuring the OTW Formatter.
There are currently no known bugs.
The OTW Formatter Plugin is licensed under the GNU General Public License and comes with ABSOLUTELY NO WARRANTY; for details see the full license. This is free software, and you are welcome to redistribute it under the terms and conditions described in the license.