diff --git a/.editorconfig b/.editorconfig
index 6468252b6c..c341ed3647 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -9,6 +9,9 @@ indent_style = space
indent_size = 2
trim_trailing_whitespace = true
+[g_*.cs]
+generated_code = true
+
[*.cs]
end_of_line = crlf
insert_final_newline = true
@@ -197,4 +200,4 @@ csharp_style_namespace_declarations = block_scoped:warning
insert_final_newline = true
indent_style = space
indent_size = 2
-trim_trailing_whitespace = true
\ No newline at end of file
+trim_trailing_whitespace = true
diff --git a/osu-framework.sln.DotSettings b/osu-framework.sln.DotSettings
index 89b6610403..29aa2da314 100644
--- a/osu-framework.sln.DotSettings
+++ b/osu-framework.sln.DotSettings
@@ -6,6 +6,7 @@
True
ExplicitlyExcluded
ExplicitlyExcluded
+ g_*.cs
SOLUTION
WARNING
WARNING