From 718eb22bfcef569bb77a684c1c1e2870115b298e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Pouiller?= Date: Thu, 5 Feb 2026 15:47:09 +0100 Subject: [PATCH] meta: Add editor configuration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit .editorconfig is supported out-of-the box by many editors (vim, vscode, etc...). This file prevent new comers to do mistake with their editor configuration. Change-Id: I60c3dedc20161883f388af6f1cb9b95b90beff2a Signed-off-by: Jérôme Pouiller Reviewed-on: https://review.openocd.org/c/openocd/+/9454 Reviewed-by: Tomas Vanek Tested-by: jenkins --- .editorconfig | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000..3ab5668a5 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,17 @@ +# EditorConfig: https://editorconfig.org/ + +# top-most EditorConfig file +root = true + +# All (Defaults) +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true +indent_style = tab +indent_size = 4 +tab_width = 4 + +[*.patch,*.diff] +trim_trailing_whitespace = false