From e624c4733e445e8bd98851c8dab2a4436fc648a3 Mon Sep 17 00:00:00 2001 From: Dianjin Wang Date: Thu, 31 Aug 2023 13:51:17 +0800 Subject: [PATCH] Doc: update editor settings for CloudberryDB Update `src/tools/editors` files and `.editorconfig` for Cloudberry Database, including unifying the the line's max length as 78 characters. You can copy these files to the your editors configuration files to apply them. --- .editorconfig | 3 ++- src/tools/editors/clion.xml | 2 +- src/tools/editors/emacs.samples | 14 +++++++++++--- src/tools/editors/vim.samples | 6 +++++- 4 files changed, 19 insertions(+), 6 deletions(-) diff --git a/.editorconfig b/.editorconfig index c755dda0016..2a7598025cf 100644 --- a/.editorconfig +++ b/.editorconfig @@ -4,6 +4,7 @@ root = true indent_style = tab indent_size = tab tab_width = 4 +max_line_length = 78 [*.{sgml,xml}] indent_style = space @@ -16,6 +17,7 @@ indent_size = 2 [*.cpp] indent_style = tab indent_size = 4 +max_line_length = 78 [{GNUmakefile,Makefile}*] indent_style = tab @@ -32,4 +34,3 @@ indent_size = 4 [*.{dxl,mdp}] indent_style = space indent_size = 2 - diff --git a/src/tools/editors/clion.xml b/src/tools/editors/clion.xml index b10bcc6cda3..9f6ad59a7bb 100644 --- a/src/tools/editors/clion.xml +++ b/src/tools/editors/clion.xml @@ -5,7 +5,7 @@ -