Description
Type: Bug
Issue Description
When I create new files through the C# devkit extension, my .editorconfig setting for file_header_template is ignored.
There might be an issue with multiple settings, but I encountered this one.
Steps to Reproduce
-
Have a project with an editorconfig that contains rules
-
Add rule
file_header_template = whateveryouwant
-
Create new file in solution through solution explorer.
3.1 Select class
3.2 Any name will do.
Expected Behavior
file_header_template should be added to the top of the file as a comment.
Actual Behavior
The rule is not respected and it seems like only the generic base template is rendered out to a file.
Logs
See zip file
Environment information
VSCode version: 1.100.1
C# Extension: 2.72.34
Using OmniSharp: false
Dotnet Information
.NET SDK: Version: 9.0.300 Commit: 15606fe0a8 Workload version: 9.0.300-manifests.5591ce44 MSBuild version: 17.14.5+edd3bbf37Runtime Environment:
OS Name: Windows
OS Version: 10.0.26100
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\9.0.300\
.NET workloads installed:
There are no installed workloads to display.
Configured to use loose manifests when installing new manifests.
Host:
Version: 9.0.5
Architecture: x64
Commit: e36e4d1a8f
.NET SDKs installed:
5.0.408 [C:\Program Files\dotnet\sdk]
7.0.120 [C:\Program Files\dotnet\sdk]
9.0.106 [C:\Program Files\dotnet\sdk]
9.0.204 [C:\Program Files\dotnet\sdk]
9.0.300 [C:\Program Files\dotnet\sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.36 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.20 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.16 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 9.0.5 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.36 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.20 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.16 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 9.0.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.36 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 7.0.20 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 8.0.16 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 9.0.5 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Other architectures found:
x86 [C:\Program Files (x86)\dotnet]
registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]
Environment variables:
Not set
global.json file:
Not found
Learn more:
https://aka.ms/dotnet/info
Download .NET:
https://aka.ms/dotnet/download
Visual Studio Code Extensions
Extension | Author | Version | Folder Name |
---|---|---|---|
a-file-icon-vscode | atommaterial | 2.0.1 | atommaterial.a-file-icon-vscode-2.0.1 |
andromeda | EliverLara | 1.8.2 | eliverlara.andromeda-1.8.2 |
angular2-switcher | infinity1207 | 0.4.0 | infinity1207.angular2-switcher-0.4.0 |
arrr | obenjiro | 0.1.3 | obenjiro.arrr-0.1.3 |
autoimport | steoates | 1.5.4 | steoates.autoimport-1.5.4 |
ayu | teabyii | 1.0.5 | teabyii.ayu-1.0.5 |
copilot | GitHub | 1.317.0 | github.copilot-1.317.0 |
copilot-chat | GitHub | 0.27.0 | github.copilot-chat-0.27.0 |
csdevkit | ms-dotnettools | 1.19.63 | ms-dotnettools.csdevkit-1.19.63-win32-x64 |
csharp | ms-dotnettools | 2.72.34 | ms-dotnettools.csharp-2.72.34-win32-x64 |
docker | docker | 0.6.0 | docker.docker-0.6.0-win32-x64 |
dotenv | mikestead | 1.0.1 | mikestead.dotenv-1.0.1 |
EditorConfig | EditorConfig | 0.17.2 | editorconfig.editorconfig-0.17.2 |
espresso | vitaliy | 1.8.3 | vitaliy.espresso-1.8.3 |
eva-theme | fisheva | 2.7.8 | fisheva.eva-theme-2.7.8 |
gitlens | eamodio | 17.0.3 | eamodio.gitlens-17.0.3 |
go | golang | 0.46.1 | golang.go-0.46.1 |
html-css-class-completion | Zignd | 1.20.0 | zignd.html-css-class-completion-1.20.0 |
intellicode-api-usage-examples | VisualStudioExptTeam | 0.2.9 | visualstudioexptteam.intellicode-api-usage-examples-0.2.9 |
laserwave | jaredkent | 1.3.3 | jaredkent.laserwave-1.3.3 |
material-icon-theme | PKief | 5.22.0 | pkief.material-icon-theme-5.22.0 |
ng-template | Angular | 20.0.0 | angular.ng-template-20.0.0 |
night-owl | sdras | 2.1.1 | sdras.night-owl-2.1.1 |
path-intellisense | christian-kohler | 2.10.0 | christian-kohler.path-intellisense-2.10.0 |
remote-containers | ms-vscode-remote | 0.413.0 | ms-vscode-remote.remote-containers-0.413.0 |
remote-wsl | ms-vscode-remote | 0.99.0 | ms-vscode-remote.remote-wsl-0.99.0 |
sass-indented | syler | 1.8.33 | syler.sass-indented-1.8.33 |
shades-of-purple | ahmadawais | 7.3.2 | ahmadawais.shades-of-purple-7.3.2 |
theme-panda | tinkertrain | 1.4.0 | tinkertrain.theme-panda-1.4.0 |
todo-tree | Gruntfuggly | 0.0.226 | gruntfuggly.todo-tree-0.0.226 |
vscode-angular2-files | alexiv | 1.6.4 | alexiv.vscode-angular2-files-1.6.4 |
vscode-docker | ms-azuretools | 1.29.6 | ms-azuretools.vscode-docker-1.29.6 |
vscode-dotnet-runtime | ms-dotnettools | 2.3.3 | ms-dotnettools.vscode-dotnet-runtime-2.3.3 |
vscode-eslint | dbaeumer | 3.0.10 | dbaeumer.vscode-eslint-3.0.10 |
vscode-html-css | ecmel | 2.0.13 | ecmel.vscode-html-css-2.0.13 |
vscode-scss | mrmlnc | 0.10.0 | mrmlnc.vscode-scss-0.10.0 |
vscode-scss-formatter | sibiraj-s | 3.0.0 | sibiraj-s.vscode-scss-formatter-3.0.0 |
vscode-stylelint | stylelint | 1.5.0 | stylelint.vscode-stylelint-1.5.0 |
vscode-tailwindcss | bradlc | 0.14.16 | bradlc.vscode-tailwindcss-0.14.16 |
vscode-typescript-next | ms-vscode | 5.9.20250513 | ms-vscode.vscode-typescript-next-5.9.20250513 |
vscode-xml | redhat | 0.29.0 | redhat.vscode-xml-0.29.0-win32-x64 |
vscodeintellicode | VisualStudioExptTeam | 1.3.2 | visualstudioexptteam.vscodeintellicode-1.3.2 |
vscodeintellicode-completions | VisualStudioExptTeam | 2.0.1 | visualstudioexptteam.vscodeintellicode-completions-2.0.1 |
vscodeintellicode-csharp | ms-dotnettools | 2.2.3 | ms-dotnettools.vscodeintellicode-csharp-2.2.3-win32-x64 |
vsliveshare | ms-vsliveshare | 1.0.5948 | ms-vsliveshare.vsliveshare-1.0.5948 |
Extension version: 1.19.63
VS Code version: Code 1.100.1 (91fa95bccb027ece6a968589bb1d662fa9c8e170, 2025-05-09T15:43:50.040Z)
OS version: Windows_NT x64 10.0.26100
Modes:
System Info
Item | Value |
---|---|
CPUs | Intel(R) Core(TM) i9-10900K CPU @ 3.70GHz (20 x 3696) |
GPU Status | 2d_canvas: enabled canvas_oop_rasterization: enabled_on direct_rendering_display_compositor: disabled_off_ok gpu_compositing: enabled multiple_raster_threads: enabled_on opengl: enabled_on rasterization: enabled raw_draw: disabled_off_ok skia_graphite: disabled_off video_decode: enabled video_encode: enabled vulkan: disabled_off webgl: enabled webgl2: enabled webgpu: enabled webnn: disabled_off |
Load (avg) | undefined |
Memory (System) | 63.78GB (33.67GB free) |
Process Argv | --crash-reporter-id efa3d349-74fa-47c1-8775-2cde48ea7e0c |
Screen Reader | no |
VM | 0% |
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805:30301674
binariesv615:30325510
c4g48928:30535728
azure-dev_surveyonecf:30548226
962ge761:30959799
2e7ec940:31000449
pythontbext0:30879054
cppperfnew:31000557
dwnewjupyter:31046869
pythonrstrctxt:31112756
nativeloc2:31192216
5fd0e150:31155592
dwcopilot:31170013
6074i472:31201624
dwoutputs:31242946
customenabled:31248079
9064b325:31222308
copilot_t_ci:31222730
e5gg6876:31282496
pythoneinst12:31285622
bgtreat:31268568
4gafe986:31271826
9gig6300:31307012
31787653:31262186
3e8i5726:31271747
996jf627:31283433
pythonrdcb7cf:31303019
usemplatestapi:31297334
0aa6g176:31307128
7bj51361:31289155
747dc170:31275177
aj953862:31281341
generatesymbolt:31295002
convertfstringf:31295003
gendocf:31295004