Title: Else statement auto-indent bug. · Issue #2367 · microsoft/vscode-python · GitHub
Open Graph Title: Else statement auto-indent bug. · Issue #2367 · microsoft/vscode-python
X Title: Else statement auto-indent bug. · Issue #2367 · microsoft/vscode-python
Description: Python extension for Visual Studio Code. Contribute to microsoft/vscode-python development by creating an account on GitHub.
Open Graph Description: Python extension for Visual Studio Code. Contribute to microsoft/vscode-python development by creating an account on GitHub.
X Description: Python extension for Visual Studio Code. Contribute to microsoft/vscode-python development by creating an account on GitHub.
Opengraph URL: https://github.com/microsoft/vscode-python
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Else statement auto-indent bug.","articleBody":"## Environment data\r\n\r\n- VS Code version: 1.25.1\r\n- Extension version (available under the Extensions sidebar): Python (2018.7.1), Python for VSCode (0.2.3)\r\n- OS and version: Windows 10 (Version 1803, OS Build 17134.165)\r\n- Python version (& distribution if applicable, e.g. Anaconda): Python 3.7\r\n- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A\r\n- Relevant/affected Python packages and their versions: N/A\r\n\r\n## Actual behavior\r\n\r\n```\r\nfoo = \"test\"\r\n\r\nif isinstance(foo, str):\r\n print(\"It's a string\")\r\n else:\r\n print(\"It's not a string\")\r\n```\r\n\r\n## Expected behavior\r\n\r\n```\r\nfoo = \"test\"\r\n\r\nif isinstance(foo, str):\r\n print(\"It's a string\")\r\nelse:\r\n print(\"It's not a string\")\r\n```\r\n\r\n## Steps to reproduce:\r\n\r\n1. Create a if/else statement\r\n2. When you reach the else statement, it will not automatically indent\r\n\r\n## Additional information:\r\n\r\nI have changed \"editor.formatOnType\" to \"True\" in user, workspace and folder settings.\r\nI have also installed the extension \"Python\" as well as \"Python for VSCode\", and that did not help.","author":{"url":"https://github.com/Muldfox","@type":"Person","name":"Muldfox"},"datePublished":"2018-08-10T02:00:48Z","url":"https://github.com/microsoft/vscode-python/issues/2367"}
| 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 | /:user_id/:repository/issues/:id(.:format) |
| route-controller | issues |
| route-action | show |
| fetch-nonce | v2:1969da96-0597-3456-63df-96e8746307c7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9892:25946D:5C630:7D48C:6AFE843A |
| html-safe-nonce | d5fb3928e3ae1a2f1cf4ae3063ecd64743a7845b56fb6795878f2ab0f7402817 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5ODkyOjI1OTQ2RDo1QzYzMDo3RDQ4Qzo2QUZFODQzQSIsInZpc2l0b3JfaWQiOiI4NDI1MjYxMTY2Nzk5NzgyOTcwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 221a2c0e838219a68eca446057b3dd8c670eb4b0058ebf2bbcf0714ce15edf57 |
| hovercard-subject-tag | repository:106462765 |
| 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/microsoft/vscode-python/issues/2367 |
| twitter:image | https://opengraph.githubassets.com/48efad0c38070deea3d6f38a685ebf94a173f4f5abc9710ec891796156a6fda5/microsoft/vscode-python |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/48efad0c38070deea3d6f38a685ebf94a173f4f5abc9710ec891796156a6fda5/microsoft/vscode-python |
| og:image:alt | Python extension for Visual Studio Code. Contribute to microsoft/vscode-python development by creating an account on GitHub. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86 |
| turbo-cache-control | no-cache |
| 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