From 1bd6225170692daf4f58fe6acf1c16d8d4b253fe Mon Sep 17 00:00:00 2001 From: Thomas Frans Date: Sat, 18 May 2024 21:37:24 +0200 Subject: [PATCH] style(vscode): add EditorConfig extension recommendation As Visual Studio Code is the most popular editor at the moment, it makes sense to recommend the EditorConfig extension because it's not included by default. Also enable the final newline in files again as that was the default until the EditorConfig file was added. --- .editorconfig | 2 +- .gitignore | 2 -- .vscode/.gitignore | 3 +++ .vscode/extensions.json | 5 +++++ 4 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 .vscode/.gitignore create mode 100644 .vscode/extensions.json diff --git a/.editorconfig b/.editorconfig index d37616250..9348dd3da 100644 --- a/.editorconfig +++ b/.editorconfig @@ -4,7 +4,7 @@ root = true indent_style = space indent_size = 4 charset = utf-8 -insert_final_newline = false +insert_final_newline = true [*.rs] max_line_length = 100 diff --git a/.gitignore b/.gitignore index 32b8e6f39..6fe72ee30 100644 --- a/.gitignore +++ b/.gitignore @@ -10,8 +10,6 @@ tags -/.vscode/ - # Ignore generated resources *.1 /misc/_ncspot diff --git a/.vscode/.gitignore b/.vscode/.gitignore new file mode 100644 index 000000000..29e3aae94 --- /dev/null +++ b/.vscode/.gitignore @@ -0,0 +1,3 @@ +/* +!/.gitignore +!/extensions.json diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 000000000..f47a55ac2 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,5 @@ +{ + "recommendations": [ + "editorconfig.editorconfig" + ] +}