René's URL Explorer Experiment


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

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@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-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:3d7d6bb9-b2ab-3592-fcef-5c057ae678d1
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idEBB4:271FB5:283302:34BF1B:6AFE5CF4
html-safe-nonce7d8249821fde0a2961aa2f5b1865b10c915fed37663252403508fc661e00306c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQkI0OjI3MUZCNToyODMzMDI6MzRCRjFCOjZBRkU1Q0Y0IiwidmlzaXRvcl9pZCI6IjE0NTYxMTcxMzc3NTA3NzcwNzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac057d84bc739a0db29cbce0887340fcbb3cc94142eec16c6c6a422d48eb7422ae
hovercard-subject-tagissue:305841846
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/vscode-python/1096/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e0a629d09d71d9f7db9f32c6d32ee6173d528fbe8fc77046484c69a03e5a255d/microsoft/vscode-python/issues/1096
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e0a629d09d71d9f7db9f32c6d32ee6173d528fbe8fc77046484c69a03e5a255d/microsoft/vscode-python/issues/1096
og:image:altEnvironment 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:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepcloth
hostnamegithub.com
expected-hostnamegithub.com
Noneb3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86
turbo-cache-controlno-preview
go-importgithub.com/microsoft/vscode-python git https://github.com/microsoft/vscode-python.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id106462765
octolytics-dimension-repository_nwomicrosoft/vscode-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forktrue
octolytics-dimension-repository_parent_id49946255
octolytics-dimension-repository_parent_nwoDonJayamanne/pythonVSCode
octolytics-dimension-repository_network_root_id49946255
octolytics-dimension-repository_network_root_nwoDonJayamanne/pythonVSCode
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4a10310af51a1bfffbedc4fd81cb582acf0cb0ff
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/vscode-python/issues/1096#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fvscode-python%2Fissues%2F1096
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fvscode-python%2Fissues%2F1096
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=microsoft%2Fvscode-python
Reloadhttps://github.com/microsoft/vscode-python/issues/1096
Reloadhttps://github.com/microsoft/vscode-python/issues/1096
Reloadhttps://github.com/microsoft/vscode-python/issues/1096
microsofthttps://github.com/microsoft
vscode-pythonhttps://github.com/microsoft/vscode-python
Codehttps://github.com/microsoft/vscode-python
Issues344 (344)https://github.com/microsoft/vscode-python/issues
Pull requests54 (54)https://github.com/microsoft/vscode-python/pulls
Discussionshttps://github.com/microsoft/vscode-python/discussions
Actionshttps://github.com/microsoft/vscode-python/actions
Wikihttps://github.com/microsoft/vscode-python/wiki
Security and quality2 (2)https://github.com/microsoft/vscode-python/security
Insightshttps://github.com/microsoft/vscode-python/insights
https://github.com/microsoft/vscode-python
New issuehttps://github.com/login?return_to=https://github.com/microsoft/vscode-python/issues/1096
New issuehttps://github.com/login?return_to=https://github.com/microsoft/vscode-python/issues/1096
#1129https://github.com/microsoft/vscode-python/pull/1129
#1222https://github.com/microsoft/vscode-python/pull/1222
The if statement is automatically formatted incorrectly after carriage returnhttps://github.com/microsoft/vscode-python/issues/1096#top
#1129https://github.com/microsoft/vscode-python/pull/1129
#1222https://github.com/microsoft/vscode-python/pull/1222
https://github.com/MikhailArkhipov
area-formattinghttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22area-formatting%22
bugIssue identified by VS Code Team member as probable bughttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22bug%22
March 2018https://github.com/microsoft/vscode-python/milestone/4
https://github.com/pcloth
pcloth (pcloth)https://github.com/pcloth
on Mar 16, 2018https://github.com/microsoft/vscode-python/issues/1096#issue-305841846
Nexthttps://github.com/microsoft/vscode-python/issues/1096?timeline_page=1
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
on Mar 18, 2018https://github.com/microsoft/vscode-python/issues/1096#event-1527111650
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
bugIssue identified by VS Code Team member as probable bughttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22bug%22
needs PRhttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22needs%20PR%22
area-formattinghttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22area-formatting%22
on Mar 18, 2018https://github.com/microsoft/vscode-python/issues/1096#event-1527111698
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
March 2018https://github.com/microsoft/vscode-python/milestone/4
on Mar 18, 2018https://github.com/microsoft/vscode-python/issues/1096#event-1527111722
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
completedhttps://github.com/microsoft/vscode-python/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#1129https://github.com/microsoft/vscode-python/pull/1129
on Mar 20, 2018https://github.com/microsoft/vscode-python/issues/1096#event-1532189133
Don Jayamanne (DonJayamanne)https://github.com/DonJayamanne
on Mar 21, 2018https://github.com/microsoft/vscode-python/issues/1096#event-1533763364
Add news entry for #1096 and #1123https://github.com/microsoft/vscode-python/commit/2b4a2460651d9da8b2f2ddbe27a6c01c749bbe38
#1096https://github.com/microsoft/vscode-python/issues/1096
#1123https://github.com/microsoft/vscode-python/issues/1123
2b4a246https://github.com/microsoft/vscode-python/commit/2b4a2460651d9da8b2f2ddbe27a6c01c749bbe38
Brett Cannon (brettcannon)https://github.com/brettcannon
closed-fixedhttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22closed-fixed%22
closed-fixedhttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22closed-fixed%22
on Mar 21, 2018https://github.com/microsoft/vscode-python/issues/1096#event-1534015062
https://github.com/brettcannon
Brett Cannon (brettcannon)https://github.com/brettcannon
on Mar 27, 2018https://github.com/microsoft/vscode-python/issues/1096#issuecomment-376684182
https://github.com/brettcannon
Brett Cannon (brettcannon)https://github.com/brettcannon
on Mar 27, 2018https://github.com/microsoft/vscode-python/issues/1096#issuecomment-376684834
https://user-images.githubusercontent.com/54418/37996492-b071fee2-31cc-11e8-8d4b-24cd3ad61f78.gif
Brett Cannon (brettcannon)https://github.com/brettcannon
on Mar 27, 2018https://github.com/microsoft/vscode-python/issues/1096#event-1544295016
Brett Cannon (brettcannon)https://github.com/brettcannon
completedhttps://github.com/microsoft/vscode-python/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#1222https://github.com/microsoft/vscode-python/pull/1222
on Mar 28, 2018https://github.com/microsoft/vscode-python/issues/1096#event-1546117183
Brett Cannon (brettcannon)https://github.com/brettcannon
on Mar 28, 2018https://github.com/microsoft/vscode-python/issues/1096#event-1546117256
Fix spacing of general (non-specific) tokens + tests (#1222)https://github.com/microsoft/vscode-python/commit/c82e04ebe796321ea4ede97503ab2efddf6c659b
#1222https://github.com/microsoft/vscode-python/pull/1222
https://docs.github.com/articles/closing-issues-via-commit-messages
c82e04ehttps://github.com/microsoft/vscode-python/commit/c82e04ebe796321ea4ede97503ab2efddf6c659b
Brett Cannon (brettcannon)https://github.com/brettcannon
closed-fixedhttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22closed-fixed%22
on Mar 28, 2018https://github.com/microsoft/vscode-python/issues/1096#event-1546117707
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
on Apr 13, 2018https://github.com/microsoft/vscode-python/issues/1096#event-1573772345
Add telemetry reporting on VS analysis engine usage (#1382)https://github.com/microsoft/vscode-python/commit/472ae4979891ce6a5ae8f84f5cdc3a4b29047ad6
#1382https://github.com/microsoft/vscode-python/pull/1382
472ae49https://github.com/microsoft/vscode-python/commit/472ae4979891ce6a5ae8f84f5cdc3a4b29047ad6
Jedi 0.12 (#1418)https://github.com/microsoft/vscode-python/commit/102d577ae0e939009dfac051bf9b6778f55bdcf0
#1418https://github.com/microsoft/vscode-python/pull/1418
102d577https://github.com/microsoft/vscode-python/commit/102d577ae0e939009dfac051bf9b6778f55bdcf0
Replace unzip package (#1419)https://github.com/microsoft/vscode-python/commit/df72cac5bffe59667a3aa129bba002c76a819d06
#1419https://github.com/microsoft/vscode-python/pull/1419
df72cachttps://github.com/microsoft/vscode-python/commit/df72cac5bffe59667a3aa129bba002c76a819d06
Fixes multiple issues with formatting on type (#1450)https://github.com/microsoft/vscode-python/commit/db9f6cf22147611fdf0dfb17622e3b58e5efcbf1
#1450https://github.com/microsoft/vscode-python/pull/1450
db9f6cfhttps://github.com/microsoft/vscode-python/commit/db9f6cf22147611fdf0dfb17622e3b58e5efcbf1
Improve detection of the function argument list in autoformat (#1508)https://github.com/microsoft/vscode-python/commit/f7e4529349a7261a8448caa64d106a22efe06cdb
#1508https://github.com/microsoft/vscode-python/pull/1508
f7e4529https://github.com/microsoft/vscode-python/commit/f7e4529349a7261a8448caa64d106a22efe06cdb
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
on May 9, 2018https://github.com/microsoft/vscode-python/issues/1096#event-1616591004
PTVS engine update + handling of the interpreter change (#1613)https://github.com/microsoft/vscode-python/commit/f18a5ee52999d0cd0d3dec61f5534c6246e85d87
#1613https://github.com/microsoft/vscode-python/pull/1613
f18a5eehttps://github.com/microsoft/vscode-python/commit/f18a5ee52999d0cd0d3dec61f5534c6246e85d87
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
on May 21, 2018https://github.com/microsoft/vscode-python/issues/1096#event-1638023183
Changes to IntelliCode and engine downloads (#1715)https://github.com/microsoft/vscode-python/commit/ca657e0b54fa75fabeab9316c870d4b42669dc1e
#1715https://github.com/microsoft/vscode-python/pull/1715
ca657e0https://github.com/microsoft/vscode-python/commit/ca657e0b54fa75fabeab9316c870d4b42669dc1e
Fix bug, remove unnecessary flag, fix hash comparison on Linux (#1734)https://github.com/microsoft/vscode-python/commit/eee1529622c6c3d251fd6c61711cbe0946613948
#1734https://github.com/microsoft/vscode-python/pull/1734
eee1529https://github.com/microsoft/vscode-python/commit/eee1529622c6c3d251fd6c61711cbe0946613948
Simplifies LS startup and update test baselines (#1762)https://github.com/microsoft/vscode-python/commit/9b7ebf66ef413ba58a7ab6db40a87bb7078a741a
#1762https://github.com/microsoft/vscode-python/pull/1762
9b7ebf6https://github.com/microsoft/vscode-python/commit/9b7ebf66ef413ba58a7ab6db40a87bb7078a741a
Rename engine to 'Microsoft Python Language Server' (#1768)https://github.com/microsoft/vscode-python/commit/874b819e402366a539b11171e8c941e80da13732
#1768https://github.com/microsoft/vscode-python/pull/1768
874b819https://github.com/microsoft/vscode-python/commit/874b819e402366a539b11171e8c941e80da13732
Format on type fixes (#1798)https://github.com/microsoft/vscode-python/commit/51224e7d88ef6c33fdd882c705b2f119637122c5
#1798https://github.com/microsoft/vscode-python/pull/1798
51224e7https://github.com/microsoft/vscode-python/commit/51224e7d88ef6c33fdd882c705b2f119637122c5
Handle numbers formatted with underscores in tokenizer (#1819)https://github.com/microsoft/vscode-python/commit/5fa57f827054ba0967be006900637e4fd4c6a565
#1819https://github.com/microsoft/vscode-python/pull/1819
5fa57f8https://github.com/microsoft/vscode-python/commit/5fa57f827054ba0967be006900637e4fd4c6a565
Improve detection if '=' is in function or lambda arguments (#1824)https://github.com/microsoft/vscode-python/commit/d27f00cc5598deef42152253be59b14928c7042f
#1824https://github.com/microsoft/vscode-python/pull/1824
d27f00chttps://github.com/microsoft/vscode-python/commit/d27f00cc5598deef42152253be59b14928c7042f
Add command for loading of LS extensions (#1914)https://github.com/microsoft/vscode-python/commit/964a99c5de566ba151f3e9c325a5ff808a5fca3c
#1914https://github.com/microsoft/vscode-python/pull/1914
964a99chttps://github.com/microsoft/vscode-python/commit/964a99c5de566ba151f3e9c325a5ff808a5fca3c
lockhttps://github.com/apps/lock
on Jul 11, 2018https://github.com/microsoft/vscode-python/issues/1096#event-1728049760
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/vscode-python/issues/1096
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/vscode-python/issues/1096
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
area-formattinghttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22area-formatting%22
bugIssue identified by VS Code Team member as probable bughttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22bug%22
March 2018https://github.com/microsoft/vscode-python/milestone/4
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.