Title: The if statement is automatically formatted incorrectly after carriage return · Issue #1096 · microsoft/vscode-python · GitHub
Open Graph Title: The if statement is automatically formatted incorrectly after carriage return · Issue #1096 · microsoft/vscode-python
X Title: The if statement is automatically formatted incorrectly after carriage return · Issue #1096 · microsoft/vscode-python
Description: Environment data VS Code version: 1.21.1 Extension version: 2018.2.1 OS and version: windows 10 x64 Python version (Anaconda): 3.5.1 Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A Case The cursor is at (ent...
Open Graph Description: Environment data VS Code version: 1.21.1 Extension version: 2018.2.1 OS and version: windows 10 x64 Python version (Anaconda): 3.5.1 Type of virtual environment used (N/A | venv | virtualenv | cond...
X Description: Environment data VS Code version: 1.21.1 Extension version: 2018.2.1 OS and version: windows 10 x64 Python version (Anaconda): 3.5.1 Type of virtual environment used (N/A | venv | virtualenv | cond...
Opengraph URL: https://github.com/microsoft/vscode-python/issues/1096
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"The if statement is automatically formatted incorrectly after carriage return","articleBody":"\u003c!-- \r\nDo you have a question instead of a bug report or enhancement request? Please ask it on https://stackoverflow.com/questions/tagged/visual-studio-code+python. \r\n\r\nUnable to install a linter or formatter? 'No installers available'? \r\nWindows - https://stackoverflow.com/questions/4750806/how-do-i-install-pip-on-windows\r\nLinux - https://www.cyberciti.biz/faq/debian-ubuntu-centos-rhel-linux-install-pipclient/ , https://www.tecmint.com/install-pip-in-linux/\r\n\r\nPython configuration issues? Please check https://code.visualstudio.com/docs/python/python-tutorial#_prerequisites\r\n\r\nOtherwise **please** fill in the requested details below. \"XXX\" markers should not be present in the final bug report.\r\n-->\r\n\r\n## Environment data\r\n\r\n- VS Code version: 1.21.1\r\n- Extension version: 2018.2.1\r\n- OS and version: windows 10 x64\r\n- Python version (Anaconda): 3.5.1\r\n- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A \r\n\r\n## Case\r\nThe cursor is at (enter) position, and I press Enter:\r\n```\r\nif 1\u003c=2: (enter)\r\n```\r\n## Actual behavior\r\nIt removes spaces before expressions and inserts spaces between less than and equal signs. Causes syntax errors\r\n\r\n```\r\nif1 \u003c = 2:\r\n |\r\n```\r\nIf you replace 1 with a variable, there is only the error of inserting spaces before the equal sign.\r\n```\r\nif num \u003c = 2:\r\n |\r\n```\r\n## Expected behavior\r\n\r\n```\r\nif 1 \u003c= 2:\r\n |\r\n```\r\n\r\n","author":{"url":"https://github.com/pcloth","@type":"Person","name":"pcloth"},"datePublished":"2018-03-16T08:35:26Z","url":"https://github.com/microsoft/vscode-python/issues/1096"}
| 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:3d7d6bb9-b2ab-3592-fcef-5c057ae678d1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EBB4:271FB5:283302:34BF1B:6AFE5CF4 |
| html-safe-nonce | 7d8249821fde0a2961aa2f5b1865b10c915fed37663252403508fc661e00306c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQkI0OjI3MUZCNToyODMzMDI6MzRCRjFCOjZBRkU1Q0Y0IiwidmlzaXRvcl9pZCI6IjE0NTYxMTcxMzc3NTA3NzcwNzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 057d84bc739a0db29cbce0887340fcbb3cc94142eec16c6c6a422d48eb7422ae |
| hovercard-subject-tag | issue:305841846 |
| 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/1096/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e0a629d09d71d9f7db9f32c6d32ee6173d528fbe8fc77046484c69a03e5a255d/microsoft/vscode-python/issues/1096 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e0a629d09d71d9f7db9f32c6d32ee6173d528fbe8fc77046484c69a03e5a255d/microsoft/vscode-python/issues/1096 |
| og:image:alt | Environment data VS Code version: 1.21.1 Extension version: 2018.2.1 OS and version: windows 10 x64 Python version (Anaconda): 3.5.1 Type of virtual environment used (N/A | venv | virtualenv | cond... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pcloth |
| 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