How to customise Visual Studio's "Create and initialize field" to add the underscore

Mon Jan 07 2019ProgrammingWeb Development

Step 1 - Starting with the Tools menu item from the top navigation menu, navigate through the menus as follows:

Tools > Options > Text Editor > C# > Code Style > Naming

Visual Studio Naming Style 001 1

Step 2 - Click the green Plus icon to open the following dialogue box:

Visual Studio Naming Style 002 1

Step 3 - Now add the following:

Visual Studio Naming Style 003 1

Step 4 - Create the configuration to use the naming style we've just created.

Visual Studio Naming Style 004 2

Step 5 - Use the "Create and initialize field"option as normal and you'll see the following.

Visual Studio Naming Style 005

GatsbyNetlifyReactTypeScriptTailwind CSS
© Copyright 2008-2022 Terry Butler