Re: [PATCH 7/9] vscode: use 8-space tabs, no trailing ws, etc for Git's source code
- From
Johannes Sixt <j6t@kdbg.org>
- Date
- Jul 25, 2018, 07:32 UTC
- Message-ID
- <88952ba5-9de4-9b32-2129-1cc83999db78@kdbg.org>
- In-Reply-To
- <2e880b6f1c6d37d0f94598db408511e0e216a51f.1532353966.git.gitgitgadget@gmail.com>
Am 23.07.2018 um 15:52 schrieb Johannes Schindelin via GitGitGadget:
Show 26 quoted lines
> From: Johannes Schindelin <johannes.schindelin@gmx.de>
>
> This adds a couple settings for the .c/.h files so that it is easier to
> conform to Git's conventions while editing the source code.
>
> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
> ---
> contrib/vscode/init.sh | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/contrib/vscode/init.sh b/contrib/vscode/init.sh
> index face115e8..29f2a729d 100755
> --- a/contrib/vscode/init.sh
> +++ b/contrib/vscode/init.sh
> @@ -21,6 +21,14 @@ cat >.vscode/settings.json.new <<\EOF ||
> "editor.wordWrap": "wordWrapColumn",
> "editor.wordWrapColumn": 72
> },
> + "[c]": {
> + "editor.detectIndentation": false,
> + "editor.insertSpaces": false,
> + "editor.tabSize": 8,
> + "editor.wordWrap": "wordWrapColumn",
> + "editor.wordWrapColumn": 80,
> + "files.trimTrailingWhitespace": true
> + },I am a VS Code user, but I haven't used these settings before.
With these settings, does the editor break lines while I am typing? Or does it just insert a visual cue that tells where I should insert a line break? If the former, it would basically make the editor unusable for my taste. I want to have total control over the code I write. The 80 column limit is just a recommendation, not a hard requirement.
> "files.associations": {
> "*.h": "c",
> "*.c": "c"
> -- Hannes