tex layout improve

This commit is contained in:
Youmu Liu
2026-03-06 18:30:56 +08:00
parent f6e897ed06
commit 0a0af53af1
2 changed files with 71 additions and 1 deletions
+10 -1
View File
@@ -1,4 +1,13 @@
[*.cs] [*]
end_of_line = lf
charset = utf-8
insert_final_newline = true
trim_trailing_whitespace = true
[*.{bat,cmd,ps1}]
end_of_line = crlf
[*.cs]
# CS1591: 缺少对公共可见类型或成员的 XML 注释 # CS1591: 缺少对公共可见类型或成员的 XML 注释
dotnet_diagnostic.CS1591.severity = suggestion dotnet_diagnostic.CS1591.severity = suggestion
+61
View File
@@ -0,0 +1,61 @@
# ══════════════════════════════════════════════
# StgSharp line ending policy
#
# 仓库内统一 LF(Linux 编译兼容)
# Windows 上 checkout 时 Git 自动转 CRLF
# VS2022 / Rider / VSCode 都认这个文件
# ══════════════════════════════════════════════
# ── 默认:所有文本文件入库 LF ──
* text=auto eol=lf
# ── 源码 ──
*.cs text eol=lf
*.c text eol=lf
*.cpp text eol=lf
*.h text eol=lf
*.hpp text eol=lf
# ── .NET 项目文件 ──
*.csproj text eol=lf
*.sln text eol=lf
*.props text eol=lf
*.targets text eol=lf
# ── 配置 / 文档 ──
*.json text eol=lf
*.xml text eol=lf
*.config text eol=lf
*.yml text eol=lf
*.yaml text eol=lf
*.md text eol=lf
*.txt text eol=lf
# ── 构建脚本 ──
*.sh text eol=lf
*.bash text eol=lf
*.cmake text eol=lf
CMakeLists.txt text eol=lf
# ── Windows 脚本(这几个必须 CRLF 否则 cmd 会出问题)──
*.bat text eol=crlf
*.cmd text eol=crlf
*.ps1 text eol=crlf
# ── 二进制:不动 ──
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.dll binary
*.exe binary
*.pdb binary
*.so binary
*.dylib binary
*.lib binary
*.obj binary
*.a binary
*.zip binary
*.7z binary
*.gz binary