From ebaf8c8135dfc0d655fe26fe38b5282df39fff26 Mon Sep 17 00:00:00 2001 From: DropDemBits Date: Thu, 6 Jul 2023 23:25:02 -0400 Subject: [PATCH] fix: Indent after pressing enter on a blank line --- editors/code/src/config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/editors/code/src/config.ts b/editors/code/src/config.ts index da7c74c28b..5c63823321 100644 --- a/editors/code/src/config.ts +++ b/editors/code/src/config.ts @@ -99,7 +99,8 @@ export class Config { let onEnterRules: vscode.OnEnterRule[] = [ { // Carry indentation from the previous line - beforeText: /^\s*$/, + // if it's only whitespace + beforeText: /^\s+$/, action: { indentAction: vscode.IndentAction.None }, }, {