Add the file header to the razor file using the editorconfig rule "file_header_template"

Chandra Mohan 461 Reputation points
2023-04-06T13:24:12.1233333+00:00

The file header defined in the root editor config file(.editorconfig) is not added to the .razor file extensions by Visual Studio. The editor configuration rule is as follows: [*] file header template = (c) 2023 The MIT License is used to licence this work. The header is only added to C# files and not to the.razor file. Could you please assist in resolving this issue?

Developer technologies | .NET | Blazor
Developer technologies | Visual Studio | Other
{count} votes

Accepted answer
  1. Anna Xiu-MSFT 31,056 Reputation points Microsoft External Staff
    2023-04-13T14:10:54.2+00:00

    Hi @Chandra Mohan

    It has been reported to Product Team, please check the ticket:

    Support .editorconfig file_header_template in other file formats - Developer Community (visualstudio.com) 

    Please vote and add your comment on that ticket. 

    Sincerely,

    Anna


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.