Skip to content

Commit d548110

Browse files
committed
fixed auto indenting #137
1 parent 478af0c commit d548110

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export function activate(context: vscode.ExtensionContext) {
4444
vscode.languages.setLanguageConfiguration(PYTHON.language, {
4545
onEnterRules: [
4646
{
47-
beforeText: /^(?:def|class|for|if|elif|else|while|try|with|finally).*?:\s*$/,
47+
beforeText: /^\s*(?:def|class|for|if|elif|else|while|try|with|finally).*?:\s*$/,
4848
action: { indentAction: vscode.IndentAction.Indent }
4949
}
5050
]

0 commit comments

Comments
 (0)