File Header Comments
A file header comment is a comment used to state a file’s copyright and license. It usually includes the copyright notice, license information, author information, and other related details. File header comments are a good practice that helps developers understand the copyright and licensing information of a file.
Copyright Declaration Convention
// Copyright (c) HelloShop Corporation. All rights reserved.
// See the license file in the project root for more information.
namespace HelloShop.AppHost
{
internal class Class1
{
}
}
About the EditorConfig Configuration File
It maintains a consistent coding style across multiple developers working on the same project in different editors and IDEs.
Visual Studio 2019 and later support EditorConfig files, so you can use an EditorConfig file in Visual Studio to define and maintain code style settings.
Copyright Notice Template
file_header_template = Copyright (c) HelloShop Corporation. All rights reserved.\nSee the license file in the project root for more information.
For the file name, you can use {fileName} as a placeholder.