dotnet/roslyn

No (obvious) way to enforce a file header with a block comment

开放

#47,228 创建于 2020年8月28日

 (4 条评论) (0 个反应) (0 位负责人)C# (4,257 个派生)batch import
Area-IDEDesign NotesIDE-CodeStylehelp wanted

仓库指标

星标
 (20,414 个星标)
PR 合并指标
 (平均合并 6天 17小时) (30 天内合并 256 个 PR)

描述

Version Used: Version 16.8.0 Preview 3.0 [30427.246.main]

I'm in a code base with a block comment header. According to the spec it seems like it was thought, but it's very unobvious how to make that work: https://github.com/dotnet/roslyn/issues/33012 and https://docs.microsoft.com/en-us/visualstudio/ide/reference/add-file-header?view=vs-2019 don't indicate how to support his.

Steps to Reproduce:

.editorconfig with:

file_header_template = /********************************************************\n*                                                        *\n*   © Copyright (C) Microsoft. All rights reserved.      *\n*                                                        *\n*********************************************************/

Expected Behavior:

/********************************************************
*                                                        *
*   © Copyright (C) Microsoft. All rights reserved.      *
*                                                        *
*********************************************************/

Actual Behavior:

// /********************************************************
// *                                                        *
// *   © Copyright (C) Microsoft. All rights reserved.      *
// *                                                        *
// *********************************************************/

贡献者指南