Title: Indentation level of `else:`-type lines is not reduced · Issue #771 · microsoft/vscode-python · GitHub
Open Graph Title: Indentation level of `else:`-type lines is not reduced · Issue #771 · microsoft/vscode-python
X Title: Indentation level of `else:`-type lines is not reduced · Issue #771 · microsoft/vscode-python
Description: Environment data VS Code version: 1.20.0 c63189deaa8e620f650cc28792b8f5f3363f2c5b x64 Python Extension version: 2018.1.0 Python Version: 3.6.3 OS and version: Ubuntu 2017.10 AMD64 Actual behavior After typing enter at the end of a line s...
Open Graph Description: Environment data VS Code version: 1.20.0 c63189deaa8e620f650cc28792b8f5f3363f2c5b x64 Python Extension version: 2018.1.0 Python Version: 3.6.3 OS and version: Ubuntu 2017.10 AMD64 Actual behavior A...
X Description: Environment data VS Code version: 1.20.0 c63189deaa8e620f650cc28792b8f5f3363f2c5b x64 Python Extension version: 2018.1.0 Python Version: 3.6.3 OS and version: Ubuntu 2017.10 AMD64 Actual behavior A...
Opengraph URL: https://github.com/microsoft/vscode-python/issues/771
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Indentation level of `else:`-type lines is not reduced","articleBody":"## Environment data\r\nVS Code version: \r\n```\r\n1.20.0\r\nc63189deaa8e620f650cc28792b8f5f3363f2c5b\r\nx64\r\n```\r\nPython Extension version: `2018.1.0`\r\nPython Version: `3.6.3`\r\nOS and version: Ubuntu 2017.10 AMD64\r\n\r\n## Actual behavior\r\nAfter typing enter at the end of a line such as `else:`, `elif cond:`, `except:`, `finally:`, the indentation level of that line is unchanged and the next line is auto-indented to the wrong level as well:\r\n```\r\nif cond:\r\n do_stuff()\r\n else:|\r\n```\r\nafter typing enter, becomes\r\n```\r\nif cond:\r\n do_stuff()\r\n else:\r\n |\r\n```\r\n## Expected behavior\r\n```\r\nif cond:\r\n do_stuff()\r\n else:|\r\n```\r\nafter typing enter (or `:` on atom if I remember correctly), should become\r\n```\r\nif cond:\r\n do_stuff()\r\nelse:\r\n |\r\n```\r\n\r\n\r\n## Steps to reproduce: \r\n- Use a construct as if-elif-else, try-except-else-finally.\r\n\r\nIs this normal? I expect that this is a problem with my setup and not this extension given the simplicity of the issue, but my install is as standard as can be...\r\n","author":{"url":"https://github.com/nathdwek","@type":"Person","name":"nathdwek"},"datePublished":"2018-02-13T10:02:58Z","url":"https://github.com/microsoft/vscode-python/issues/771"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:dcdaf7f4-dcd5-158a-a25e-8c31138c18f5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ABB0:11B988:A4B0B8:DF18F6:6AFE6626 |
| html-safe-nonce | a31c2b8d1c97e95f96ebfbc9bedd8423bb6ac996187b7382b49dac16ffffd848 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQkIwOjExQjk4ODpBNEIwQjg6REYxOEY2OjZBRkU2NjI2IiwidmlzaXRvcl9pZCI6Ijc5NDA2ODg5NjM0NjE2MDQ5MDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 5169da86ba7816c28eceab7b51859c5f9316783717d7a0ff4ef96a2b8f86d720 |
| hovercard-subject-tag | issue:296677831 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/vscode-python/771/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f6540cfa6de186512acd1ed66378e4600b0a1514e4c5e0c5eec0a4d9ecf2a6f8/microsoft/vscode-python/issues/771 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f6540cfa6de186512acd1ed66378e4600b0a1514e4c5e0c5eec0a4d9ecf2a6f8/microsoft/vscode-python/issues/771 |
| og:image:alt | Environment data VS Code version: 1.20.0 c63189deaa8e620f650cc28792b8f5f3363f2c5b x64 Python Extension version: 2018.1.0 Python Version: 3.6.3 OS and version: Ubuntu 2017.10 AMD64 Actual behavior A... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nathdwek |
| hostname | github.com |
| expected-hostname | github.com |
| None | b3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/vscode-python git https://github.com/microsoft/vscode-python.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 106462765 |
| octolytics-dimension-repository_nwo | microsoft/vscode-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | true |
| octolytics-dimension-repository_parent_id | 49946255 |
| octolytics-dimension-repository_parent_nwo | DonJayamanne/pythonVSCode |
| octolytics-dimension-repository_network_root_id | 49946255 |
| octolytics-dimension-repository_network_root_nwo | DonJayamanne/pythonVSCode |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4a10310af51a1bfffbedc4fd81cb582acf0cb0ff |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width