-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
dotnet/sdk
#30955Labels
Area-IDEuntriagedIssues and PRs which have not yet been triaged by a leadIssues and PRs which have not yet been triaged by a lead
Milestone
Description
Version Used:
17.5 Preview 1
Steps to Reproduce:
- Create new console app
- Add the folowing
.editorconfig:
[*.cs]
csharp_style_namespace_declarations=file_scoped:suggestion- Right click on projet -> Add -> New Item
- Use the full view and select
Classthere. Name itItem.cs - Observe generated class file
Expected Behavior:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TestCSApp;
internal class Item
{
}Actual Behavior:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TestCSApp;
internal class Item
{
}The fact, that there is no line between namespace TestCSApp; and internal class Item is extremely frustrating. I have to add it manually every single time!
I don't know if this issue really belongs to roslyn. Just placed it here based on the fact, that this thing needs to know code style options to generate the file. Feel free to move it to the relevant project if I am wrong
xparadoxical, Dreamescaper, toddwdev and rasmus-carlsson
Metadata
Metadata
Assignees
Labels
Area-IDEuntriagedIssues and PRs which have not yet been triaged by a leadIssues and PRs which have not yet been triaged by a lead