JetBrains Rider 2025.2 Help

Predefined Surround Templates for C++

This topic lists all predefined surround templates for C++ in JetBrains Rider 2025.2. For more information about surround templates, refer to Surround code fragments with templates.

Template

Details

include_guard

Include guard surround template

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

Body

#ifndef $FILENAME$ #define $FILENAME$ $SELECTION$ #endif // $FILENAME$

Parameters

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

  • DATE - Evaluates to file creation date and time of the current file

  • SELECTION - The text selected by the user before invoking the template.

10 July 2025