We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 478af0c commit d548110Copy full SHA for d548110
src/client/extension.ts
@@ -44,7 +44,7 @@ export function activate(context: vscode.ExtensionContext) {
44
vscode.languages.setLanguageConfiguration(PYTHON.language, {
45
onEnterRules: [
46
{
47
- beforeText: /^(?:def|class|for|if|elif|else|while|try|with|finally).*?:\s*$/,
+ beforeText: /^\s*(?:def|class|for|if|elif|else|while|try|with|finally).*?:\s*$/,
48
action: { indentAction: vscode.IndentAction.Indent }
49
}
50
]
0 commit comments