From 8186af5a26bc6a628f283c4791c8d68ef6fa1336 Mon Sep 17 00:00:00 2001 From: Xuehai Pan Date: Mon, 7 Jul 2025 11:20:18 +0800 Subject: [PATCH] [BE][Easy] set end-of-line for `.bat` file to CRLF in `.editorconfig` (#156032) See also: https://github.com/pytorch/pytorch/blob/54976bca103fcf2b5037cc0cd1b37c4639fcf779/.gitattributes#L1 Pull Request resolved: https://github.com/pytorch/pytorch/pull/156032 Approved by: https://github.com/seemethere, https://github.com/ezyang --- .editorconfig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.editorconfig b/.editorconfig index 5b03a1a2fb51..e9581612a050 100644 --- a/.editorconfig +++ b/.editorconfig @@ -28,3 +28,9 @@ indent_size = 2 # Make [Makefile] indent_style = tab + +# Batch file +[*.bat] +indent_style = space +indent_size = 2 +end_of_line = crlf