JetBrains Rider 2024.3 Help

Predefined Live Templates for C++

This topic lists all predefined live templates for C++ in JetBrains Rider 2024.3. For more information about live templates, refer to Create source code using live templates.

Template

Details

ctx

Current file context

Scope Everywhere

Body

$CTX$

Parameters

  • CTX - Provides a list of items describing current context. This includes file name, containing type name, namespace name, etc.

nguid

Insert new GUID

Scope Everywhere

Body

$GUID$

Parameters

  • GUID - Generates a new Globally Unique Identifier (GUID)

union

union declaration

Scope C++ type-member declarations, C++ class declarations

Body

union $NAME$ {$END$};

Parameters

  • NAME - Evaluates to the specified constant value

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

enumclass

Enum class declaration

Scope C++ type-member declarations, C++ class declarations

Body

enum class $NAME$ {$END$};

Parameters

  • NAME - Evaluates to the specified constant value

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

class

Class declaration

Scope C++ class declarations, C++ type-member declarations

Body

class $NAME$ {public:$END$};

Parameters

  • NAME - Evaluates to the specified constant value

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

enum

Enum declaration

Scope C++ class declarations, C++ type-member declarations

Body

enum $NAME$ {$END$};

Parameters

  • NAME - Evaluates to the specified constant value

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

incg

Include guard

Scope C/C++ top-level declarations, At line start

Body

#ifndef $FILENAME$ #define $FILENAME$ $END$ #endif // $FILENAME$

Parameters

  • FILENAME - Evaluates to the current file name in uppercase with all non-alphanumeric characters replaced with underscores

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

struct

struct declaration

Scope C++ class declarations, C++ type-member declarations

Body

struct $NAME$ {$END$};

Parameters

  • NAME - Evaluates to the specified constant value

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

UE_LOG

Log a formatted message using UE_LOG

Scope Unreal Engine solutions, C/C++ statements

Body

UE_LOG($CATEGORY$, $VERBOSITY$, TEXT("$END$"));

Parameters

  • CATEGORY - Evaluates to a list of log categories

  • VERBOSITY - Evaluates to a list of log verbosity levels

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

UCLASS

UCLASS declaration

Scope C++ class declarations, Unreal Engine header files

Body

UCLASS() class $NAME$:public $BASE$ {GENERATED_BODY() public:$END$};

Parameters

  • NAME - Evaluates to the specified constant value

  • BASE - Shows basic code completion list at the point where the variable is evaluated

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

UENUM

UENUM declaration

Scope C++ class declarations, Unreal Engine header files

Body

UENUM() enum $NAME$ {$END$};

Parameters

  • NAME - Evaluates to the specified constant value

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

UENUMCLASS

UENUM declaration using the "enum class" syntax

Scope C++ class declarations, Unreal Engine header files

Body

UENUM() enum class $NAME$ {$END$};

Parameters

  • NAME - Evaluates to the specified constant value

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

UINTERFACE

UINTERFACE declaration

Scope C++ class declarations, Unreal Engine header files

Body

UINTERFACE() class U$NAME$:public UInterface {GENERATED_BODY()}; class I$NAME$ {GENERATED_BODY() public:$END$};

Parameters

  • NAME - Evaluates to the specified constant value

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

USTRUCT

USTRUCT declaration

Scope C++ class declarations, Unreal Engine header files

Body

USTRUCT() struct $NAME$ {GENERATED_BODY() $END$};

Parameters

  • NAME - Evaluates to the specified constant value

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

UE_LOGFMT

Log a formatted message using UE_LOGFMT

Scope Unreal Engine solutions, C/C++ statements

Body

UE_LOGFMT($CATEGORY$, $VERBOSITY$, "$END$");

Parameters

  • CATEGORY - Evaluates to a list of log categories

  • VERBOSITY - Evaluates to a list of log verbosity levels

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

Last modified: 06 November 2024