Telerik® JustCode™ by Progress

File Templates insert a code snippet into a newly created file.

To insert a template

Press Ctrl+Alt+Ins or choose the command 'Expand File Template' from Visual Aid 'Code' menu, JustCode 'Code' menu or Visual Studio text editor context menu. From the dialog, select the template you want to expand. A new dialog will pop-up, asking you for the name of the new file to be created.

Predefined File Templates

C#

namespace _ { _ class _ { } }

Generates a new file containing an empty class.

Language

C#

Default acronym

Class

Parameters

  • Namespace value - $1=SUGGEST_NAMESPACE()$ - in which namespace the class will be declared.
  • Access modifier value - $2=SELECT(public,internal,protected,private)$ - access modifier of the class.
  • Class name value - $3=GET_FILE_NAME()$ - the name of the class.

Description

  • $NEW_FILE$namespace $1=SUGGEST_NAMESPACE()$

    {

    $2=SELECT(public,internal,protected,private)$ class $3=GET_FILE_NAME()$

    {

    |

    }

    }

Example

Apply template

Code Templates File CSharp Class

Using the Tab key you can iterate through the parameters. Using the Up and Down arrow keys you can change the access modifier.

namespace _ { _ struct _ { } }

Generates a new file containing an empty struct.

Language

C#

Default acronym

Struct

Parameters

  • Namespace value - $1=SUGGEST_NAMESPACE()$ - in which namespace the struct will be declared.
  • Access modifier value - $2=SELECT(public,internal,protected,private)$ - access modifier of the struct.
  • Struct name value - $3=GET_FILE_NAME()$ - the name of the struct.

Description

  • $NEW_FILE$namespace $1=SUGGEST_NAMESPACE()$

    {

    $2=SELECT(public,internal,protected,private)$ struct $3=GET_FILE_NAME()$

    {

    |

    }

    }

Example

Apply template

Code Templates File CSharp Struct

Using the Tab key you can iterate through the parameters. Using the Up and Down arrow keys you can change the access modifier.

namespace _ { _ enum _ { } }

Generates a new file containing an empty enum.

Language

C#

Default acronym

Enum

Parameters

  • Namespace value - $1=SUGGEST_NAMESPACE()$ - in which namespace the enum will be declared.
  • Access modifier value - $2=SELECT(public,internal,protected,private)$ - access modifier of the enum.
  • Enum name value - $3=GET_FILE_NAME()$ - the name of the enum.

Description

  • $NEW_FILE$namespace $1=SUGGEST_NAMESPACE()$

    {

    $2=SELECT(public,internal,protected,private)$ enum $3=GET_FILE_NAME()$

    {

    |

    }

    }

Example

Apply template

Code Templates File CSharp Enum

Using the Tab key you can iterate through the parameters. Using the Up and Down arrow keys you can change the access modifier.

namespace _ { _ interface _ { } }

Generates a new file containing an empty interface.

Language

C#

Default acronym

Interface

Parameters

  • Namespace value - $1=SUGGEST_NAMESPACE()$ - in which namespace the interface will be declared.
  • Access modifier value - $2=SELECT(public,internal,protected,private)$ - access modifier of the interface.
  • Interface name value - $3=GET_FILE_NAME()$ - the name of the interface.

Description

  • $NEW_FILE$namespace $1=SUGGEST_NAMESPACE()$

    {

    $2=SELECT(public,internal,protected,private)$ interface $3=GET_FILE_NAME()$

    {

    |

    }

    }

Example

Apply template

Code Templates File CSharp Interface

Using the Tab key you can iterate through the parameters. Using the Up and Down arrow keys you can change the access modifier.

VB.NET

_ Class _ End Class

Generates a new file containing an empty Class.

Language

VB.NET

Default acronym

Class

Parameters

  • Access modifier value - $1=SELECT(Public,Protected,Friend,Protected Friend,Private)$ - access modifier of the class.
  • Class name value - $2=GET_FILE_NAME()$ - the name of the class.

Description

  • $NEW_FILE$$1=SELECT(Public,Protected,Friend,Protected Friend,Private)$ Class $2=GET_FILE_NAME()$

    |

    End Class

Example

Apply template

Code Templates File VB Class

Using the Tab key you can iterate through the parameters. Using the Up and Down arrow keys you can change the access modifier.

_ Structure _ End Structure

Generates a new file containing an empty Structure.

Language

VB.NET

Default acronym

Structure

Parameters

  • Access modifier value - $1=SELECT(Public,Protected,Friend,Protected Friend,Private)$ - access modifier of the structure.
  • Structure name value - $2=GET_FILE_NAME()$ - the name of the structure.

Description

  • $NEW_FILE$$1=SELECT(Public,Protected,Friend,Protected Friend,Private)$ Structure $2=GET_FILE_NAME()$

    |

    End Structure

Example

Apply template

Code Templates File VB Structure

Using the Tab key you can iterate through the parameters. Using the Up and Down arrow keys you can change the access modifier.

_ Enum _ End Enum

Generates a new file containing an empty Enum.

Language

VB.NET

Default acronym

Enum

Parameters

  • Access modifier value - $1=SELECT(Public,Protected,Friend,Protected Friend,Private)$ - access modifier of the enum.
  • Enum name value - $2=GET_FILE_NAME()$ - the name of the enum.

Description

  • $NEW_FILE$$1=SELECT(Public,Protected,Friend,Protected Friend,Private)$ Enum $2=GET_FILE_NAME()$

    |

    End Enum

Example

Apply template

Code Templates File VB Enum

Using the Tab key you can iterate through the parameters. Using the Up and Down arrow keys you can change the access modifier.

_ Interface _ End Interface

Generates a new file containing an empty Interface.

Language

VB.NET

Default acronym

Interface

Parameters

  • Access modifier value - $1=SELECT(Public,Protected,Friend,Protected Friend,Private)$ - access modifier of the interface.
  • Interface name value - $2=GET_FILE_NAME()$ - the name of the interface.

Description

  • $NEW_FILE$$1=SELECT(Public,Protected,Friend,Protected Friend,Private)$ Interface $2=GET_FILE_NAME()$

    |

    End Interface

Example

Apply template

Code Templates File VB Interface

Using the Tab key you can iterate through the parameters. Using the Up and Down arrow keys you can change the access modifier.

_ Module _ Sub _() End Sub End Module

Generates a new file containing an empty Module.

Language

VB.NET

Default acronym

Module

Parameters

  • Module access modifier value - $1=SELECT(Public,Protected,Friend,Protected Friend,Private)$ - access modifier of the module.
  • Module name value - $2=GET_FILE_NAME()$ - the name of the module.
  • Sub name value - $3=SELECT(Main)$ - the name of the sub.

Description

  • $NEW_FILE$$1=SELECT(Public,Protected,Friend,Protected Friend,Private)$ Module $2=GET_FILE_NAME()$

    Sub $3=SELECT(Main)$()

    |

    End Sub

    End Module

Example

Apply template

Code Templates File VB Module

Using the Tab key you can iterate through the parameters. Using the Up and Down arrow keys you can change the access modifiers.

HTML

<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> </head> <body> </body> </html>

Generates a new file containing an empty HTML Page.

Language

HTML

Default acronym

HTML Page

Description

  • $NEW_FILE$<!DOCTYPE html>

    <html xmlns="http://www.w3.org/1999/xhtml">

    <head>

    <title></title>

    </head>

    <body>

    |

    </body>

    </html>

Example

Apply template

Code Templates File HTML Page

CSS

body { }

Generates a new file containing an empty CSS Style Sheet.

Language

CSS

Default acronym

Style Sheet

Description

  • $NEW_FILE$body {

    |

    }

Example

Apply template

Code Templates File CSS Style Sheet

LESS

body { }

Generates a new file containing an empty LESS Style Sheet.

Language

LESS

Default acronym

LESS Style Sheet

Description

  • $NEW_FILE$body {

    |

    }

Example

Apply template

Code Templates File LESS Style Sheet

See Also