ReSharper 2023.1 Help

Predefined File Templates for VB.NET

This topic lists all predefined file templates for VB.NET in ReSharper 2023.1. For more information about file templates, see Create files from templates.

Template

Details

Class

Create a new file in the current project containing an empty VB.NET Class.

Scope VB.NET projects

Body

Public Class $CLASS$ $END$ End Class

Parameters

  • CLASS - Evaluates to the current file name without extension and with all non-alphanumeric characters replaced with underscores

  • NAMESPACE - Evaluates to the default namespace for the current file

  • END - The caret position after the template is applied.

Interface

Create a new file in the current project containing an empty VB.NET Interface.

Scope VB.NET projects

Body

Public Interface $INTERFACE$ $END$ End Interface

Parameters

  • INTERFACE - Evaluates to the current file name without extension and with all non-alphanumeric characters replaced with underscores

  • NAMESPACE - Evaluates to the default namespace for the current file

  • END - The caret position after the template is applied.

Structure

Create a new file in the current project containing an empty VB.NET Structure.

Scope VB.NET projects

Body

Public Structure $STRUCTURE$ $END$ End Structure

Parameters

  • STRUCTURE - Evaluates to the current file name without extension and with all non-alphanumeric characters replaced with underscores

  • NAMESPACE - Evaluates to the default namespace for the current file

  • END - The caret position after the template is applied.

Module

Create a new file in the current project containing an empty VB.NET Module.

Scope VB.NET projects

Body

Public Module $MODULE$ $END$ End Module

Parameters

  • MODULE - Evaluates to the current file name without extension and with all non-alphanumeric characters replaced with underscores

  • NAMESPACE - Evaluates to the default namespace for the current file

  • END - The caret position after the template is applied.

Enum

Create a new file in the current project containing an empty VB.NET Enum.

Scope VB.NET projects

Body

Public Enum $ENUM$ $END$ End Enum

Parameters

  • ENUM - Evaluates to the current file name without extension and with all non-alphanumeric characters replaced with underscores

  • NAMESPACE - Evaluates to the default namespace for the current file

  • END - The caret position after the template is applied.

Last modified: 27 March 2023