FDT Variable Templates

January 19th, 2008

Looks like I am really lazy today, so here are 4 more templates for creating public, private, and static variables.

But first a quick background into my variable naming conventions. I use underscores to help denote what kind of variable I am using. Public variables have no underscore “foobar“. Private variables have a single underscore “_foobar“. Finally public and private static variables have double underscores “__foobar“. Since I never use public static variables I really don’t think about any possible confusion between the static private and public having the same amount of underscores. Now onto the FDT code templates:

public var ${name} : ${type};

Public variable.

private var _${name} : ${type};

Private variable.

public static var __${name} : ${type};

Public static variable.

private static var __${name} : ${type};

Private static variable.

Check out my other post on using code templates in Eclipse and FDT 3 here.

Leave a Reply