diff options
| author | DropDemBits <r3usrlnd@gmail.com> | 2023-07-06 23:25:02 -0400 |
|---|---|---|
| committer | DropDemBits <r3usrlnd@gmail.com> | 2023-07-06 23:25:02 -0400 |
| commit | ebaf8c8135dfc0d655fe26fe38b5282df39fff26 (patch) | |
| tree | db7ab251f6dd102f1118f335e7ac8ef48bbb1244 | |
| parent | 924d277f32b53219fcaa03226c17b485a081ed16 (diff) | |
| download | rust-ebaf8c8135dfc0d655fe26fe38b5282df39fff26.tar.gz rust-ebaf8c8135dfc0d655fe26fe38b5282df39fff26.zip | |
fix: Indent after pressing enter on a blank line
| -rw-r--r-- | editors/code/src/config.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editors/code/src/config.ts b/editors/code/src/config.ts index da7c74c28ba..5c63823321c 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 }, }, { |
