René's URL Explorer Experiment


Title: Improve auto-indentation behaviour · Issue #481 · microsoft/vscode-python · GitHub

Open Graph Title: Improve auto-indentation behaviour · Issue #481 · microsoft/vscode-python

X Title: Improve auto-indentation behaviour · Issue #481 · microsoft/vscode-python

Description: Environment data VS Code version: Version 1.19.0 Commit 816be6780ca8bd0ab80314e11478c48c70d09383 Date 2017-12-14T09:56:48.842Z Shell 1.7.9 Renderer 58.0.3029.110 Node 7.9.0 Architecture x64 Python Extension version: 0.9.1 Python Version:...

Open Graph Description: Environment data VS Code version: Version 1.19.0 Commit 816be6780ca8bd0ab80314e11478c48c70d09383 Date 2017-12-14T09:56:48.842Z Shell 1.7.9 Renderer 58.0.3029.110 Node 7.9.0 Architecture x64 Python ...

X Description: Environment data VS Code version: Version 1.19.0 Commit 816be6780ca8bd0ab80314e11478c48c70d09383 Date 2017-12-14T09:56:48.842Z Shell 1.7.9 Renderer 58.0.3029.110 Node 7.9.0 Architecture x64 Python ...

Opengraph URL: https://github.com/microsoft/vscode-python/issues/481

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Improve auto-indentation behaviour","articleBody":"## Environment data\r\nVS Code version:  Version 1.19.0\r\nCommit 816be6780ca8bd0ab80314e11478c48c70d09383\r\nDate 2017-12-14T09:56:48.842Z\r\nShell 1.7.9\r\nRenderer 58.0.3029.110\r\nNode 7.9.0\r\nArchitecture x64\r\n\r\nPython Extension version:  0.9.1\r\nPython Version:  Python 3.6.3\r\nOS and version:  ArchLinux\r\n\r\n## Case 1\r\n\r\nThe cursor is at `|` position (about to add second argument to `print`), and I press `Enter`:\r\n### Actual\r\n``` python\r\ndef case1():\r\n    print('first_argument', |)\r\n```\r\nIt becomes:\r\n``` python\r\ndef case1():\r\n    print('first_argument', \r\n    |)\r\n```\r\n### Expected 1\r\n``` python\r\ndef case1():\r\n    print('first_argument'\r\n        |)\r\n\r\n```\r\n### OR Expected 2 (this one is preferred)\r\n``` python\r\ndef case1():\r\n    print('first_argument'\r\n          |)\r\n```\r\n\r\n## Case 2\r\n\r\n### Actual\r\n\r\nThe cursor is right after the closing parenthesis and I press `Enter`.\r\n``` python\r\ndef case2():\r\n    print(\r\n        'some_very_very_very_very_long_function_argument_',\r\n        'second_argument')|\r\n```\r\nIt becomes:\r\n``` python\r\ndef case2():\r\n    print(\r\n        'some_very_very_very_very_long_function_argument_',\r\n        'second_argument')\r\n        |\r\n```\r\n### Expected\r\n``` python\r\ndef case2():\r\n    print(\r\n        'some_very_very_very_very_long_function_argument_',\r\n        'second_argument')\r\n    |\r\n```\r\n\r\n## Case 3\r\n\r\n### Actual\r\n\r\nThe cursor after the comment. Press Enter:\r\n``` python\r\ndef case3(): # some comment|\r\n```\r\nIt becomes:\r\n``` python\r\ndef case3(): # some comment\r\n|\r\n```\r\n### Expected\r\n``` python\r\ndef case3(): # some comment\r\n    |\r\n```\r\n\r\nSame with comments after for loops:\r\n``` python\r\ndef case3(): # some comment\r\n    for i in range(1): # another comment|\r\n```\r\nafter pressing Enter becomes\r\n``` python\r\ndef case3(): # some comment\r\n    for i in range(1): # another comment\r\n    |\r\n```\r\nExpected:\r\n``` python\r\ndef case3(): # some comment\r\n    for i in range(1): # another comment\r\n        |\r\n```\r\n\r\n## Also look at microsoft/vscode-python#3284","author":{"url":"https://github.com/balta2ar","@type":"Person","name":"balta2ar"},"datePublished":"2017-12-23T10:28:45Z","url":"https://github.com/microsoft/vscode-python/issues/481"}

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:1e1f72ab-3b35-b851-7be9-d1f4bec97c1b
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB740:3C7AB6:628EC7:811B91:6AFE6CC5
html-safe-noncef59baa4322134e9032f74b82c80cc01489eb274bc84a77db5f02af0234f40e36
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNzQwOjNDN0FCNjo2MjhFQzc6ODExQjkxOjZBRkU2Q0M1IiwidmlzaXRvcl9pZCI6IjYzMjI5ODgyMjM3MjA2NDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaca1ab2a507a717f498c8dab9b46acf98836ab4bb9297f4f05bf509769e0fd8ee7
hovercard-subject-tagissue:284299314
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/481/issue_layout
twitter:imagehttps://opengraph.githubassets.com/3016b5368833fbadf35be2ddc7ce8e2e94c198a9a5173fc4b5b68b32a2ab08ac/microsoft/vscode-python/issues/481
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/3016b5368833fbadf35be2ddc7ce8e2e94c198a9a5173fc4b5b68b32a2ab08ac/microsoft/vscode-python/issues/481
og:image:altEnvironment data VS Code version: Version 1.19.0 Commit 816be6780ca8bd0ab80314e11478c48c70d09383 Date 2017-12-14T09:56:48.842Z Shell 1.7.9 Renderer 58.0.3029.110 Node 7.9.0 Architecture x64 Python ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebalta2ar
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/481#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fvscode-python%2Fissues%2F481
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%2F481
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/481
Reloadhttps://github.com/microsoft/vscode-python/issues/481
Reloadhttps://github.com/microsoft/vscode-python/issues/481
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/481
New issuehttps://github.com/login?return_to=https://github.com/microsoft/vscode-python/issues/481
Improve auto-indentation behaviourhttps://github.com/microsoft/vscode-python/issues/481#top
area-editor-*User-facing catch-allhttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22area-editor-*%22
area-formattinghttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22area-formatting%22
feature-requestRequest for new features or functionalityhttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22feature-request%22
metaIssue that is tracking an overall projecthttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22meta%22
needs PRReady to be worked onhttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22needs%20PR%22
FY20Q2https://github.com/microsoft/vscode-python/milestone/49
https://github.com/balta2ar
Yuri Bochkarev (balta2ar)https://github.com/balta2ar
on Dec 23, 2017https://github.com/microsoft/vscode-python/issues/481#issue-284299314
#3284https://github.com/microsoft/vscode-python/issues/3284
Nexthttps://github.com/microsoft/vscode-python/issues/481?timeline_page=1
Brett Cannon (brettcannon)https://github.com/brettcannon
awaiting 2-PRhttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22awaiting%202-PR%22
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
on Jan 2, 2018https://github.com/microsoft/vscode-python/issues/481#event-1407003868
https://github.com/balta2ar
Yuri Bochkarev (balta2ar)https://github.com/balta2ar
on Jan 6, 2018https://github.com/microsoft/vscode-python/issues/481#issuecomment-355735974
https://github.com/balta2ar
Yuri Bochkarev (balta2ar)https://github.com/balta2ar
on Jan 8, 2018https://github.com/microsoft/vscode-python/issues/481#issuecomment-356069325
#385https://github.com/microsoft/vscode-python/issues/385
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
on Jan 8, 2018https://github.com/microsoft/vscode-python/issues/481#event-1414303455
https://github.com/MikhailArkhipov
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
on Feb 1, 2018https://github.com/microsoft/vscode-python/issues/481#issuecomment-362385046
#385https://github.com/microsoft/vscode-python/issues/385
https://github.com/DonJayamanne
Don Jayamanne (DonJayamanne)https://github.com/DonJayamanne
on Feb 1, 2018https://github.com/microsoft/vscode-python/issues/481#issuecomment-362386251
https://github.com/balta2ar
Yuri Bochkarev (balta2ar)https://github.com/balta2ar
on Feb 1, 2018https://github.com/microsoft/vscode-python/issues/481#issuecomment-362392776
https://github.com/DonJayamanne
Don Jayamanne (DonJayamanne)https://github.com/DonJayamanne
on Feb 1, 2018https://github.com/microsoft/vscode-python/issues/481#issuecomment-362413621
https://github.com/MikhailArkhipov
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
on Feb 6, 2018https://github.com/microsoft/vscode-python/issues/481#issuecomment-363510766
Yuri Bochkarev (@balta2ar)https://github.com/balta2ar
https://user-images.githubusercontent.com/12820357/35875618-b2433548-0b24-11e8-8b1f-5d62fc539fd6.png
https://user-images.githubusercontent.com/12820357/35875554-7e835526-0b24-11e8-95b0-5f99afd11a57.png
https://github.com/balta2ar
Yuri Bochkarev (balta2ar)https://github.com/balta2ar
on Feb 6, 2018https://github.com/microsoft/vscode-python/issues/481#issuecomment-363539828
atom/atom#13877 (comment)https://github.com/atom/atom/pull/13877#issuecomment-363328367
https://github.com/tree-sitter/tree-sitterhttps://github.com/tree-sitter/tree-sitter
https://github.com/MikhailArkhipov
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
on Feb 6, 2018https://github.com/microsoft/vscode-python/issues/481#issuecomment-363564056
Don Jayamanne (DonJayamanne)https://github.com/DonJayamanne
feature-requestRequest for new features or functionalityhttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22feature-request%22
bugIssue identified by VS Code Team member as probable bughttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22bug%22
on Feb 8, 2018https://github.com/microsoft/vscode-python/issues/481#event-1464881606
https://github.com/amueller
Andreas Mueller (amueller)https://github.com/amueller
on Dec 27, 2022https://github.com/microsoft/vscode-python/issues/481#issuecomment-1366075886
https://github.com/brettcannon
Brett Cannon (brettcannon)https://github.com/brettcannon
on Jan 3, 2023https://github.com/microsoft/vscode-python/issues/481#issuecomment-1370295370
https://github.com/brettcannon
Brett Cannon (brettcannon)https://github.com/brettcannon
on Jan 6, 2023https://github.com/microsoft/vscode-python/issues/481#issuecomment-1372950232
https://github.com/drorata
Dror Atariah (drorata)https://github.com/drorata
on Jan 6, 2023https://github.com/microsoft/vscode-python/issues/481#issuecomment-1373210150
microsoft/vscode-jupyter#12501https://github.com/microsoft/vscode-jupyter/issues/12501
https://github.com/amueller
Andreas Mueller (amueller)https://github.com/amueller
on Jan 9, 2023https://github.com/microsoft/vscode-python/issues/481#issuecomment-1376166159
https://user-images.githubusercontent.com/449558/211390821-7e316a69-e1be-445a-bce6-182df1bc56f6.png
https://github.com/amueller
Andreas Mueller (amueller)https://github.com/amueller
on Jan 9, 2023https://github.com/microsoft/vscode-python/issues/481#issuecomment-1376170051
https://github.com/brettcannon
Brett Cannon (brettcannon)https://github.com/brettcannon
on Jan 10, 2023https://github.com/microsoft/vscode-python/issues/481#issuecomment-1377749397
bug in the Python extension that wasn't automatically opting people into the featurehttps://github.com/microsoft/vscode-python/commit/90cb8296d6f139102850c087c3dfd83bb15399ad
https://github.com/brettcannon
Brett Cannon (brettcannon)https://github.com/brettcannon
on Jan 10, 2023https://github.com/microsoft/vscode-python/issues/481#issuecomment-1377750009
https://github.com/amueller
Andreas Mueller (amueller)https://github.com/amueller
on Jan 11, 2023https://github.com/microsoft/vscode-python/issues/481#issuecomment-1378057000
https://github.com/luabud
Luciana Abud (luabud)https://github.com/luabud
on Jan 11, 2023https://github.com/microsoft/vscode-python/issues/481#issuecomment-1379354054
Andreas Mueller (@amueller)https://github.com/amueller
https://user-images.githubusercontent.com/45497113/211894858-303f838b-938d-4b94-b277-d201c6734da3.png
#20480https://github.com/microsoft/vscode-python/pull/20480
https://github.com/brettcannon
Brett Cannon (brettcannon)https://github.com/brettcannon
on Jan 11, 2023https://github.com/microsoft/vscode-python/issues/481#issuecomment-1379401214
https://github.com/amueller
Andreas Mueller (amueller)https://github.com/amueller
on Jan 11, 2023https://github.com/microsoft/vscode-python/issues/481#issuecomment-1379456044
https://github.com/luabud
Luciana Abud (luabud)https://github.com/luabud
on May 10, 2023https://github.com/microsoft/vscode-python/issues/481#issuecomment-1542526771
Pylancehttps://marketplace.visualstudio.com/items?itemName=ms-python.vscode-pylance
Pylance repohttps://github.com/microsoft/pylance-release/issues
Luciana Abud (luabud)https://github.com/luabud
completedhttps://github.com/microsoft/vscode-python/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on May 10, 2023https://github.com/microsoft/vscode-python/issues/481#event-9213815754
github-actionshttps://github.com/apps/github-actions
on Jun 10, 2023https://github.com/microsoft/vscode-python/issues/481#event-9489073945
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/vscode-python/issues/481
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/vscode-python/issues/481
area-editor-*User-facing catch-allhttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22area-editor-*%22
area-formattinghttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22area-formatting%22
feature-requestRequest for new features or functionalityhttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22feature-request%22
metaIssue that is tracking an overall projecthttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22meta%22
needs PRReady to be worked onhttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22needs%20PR%22
FY20Q2https://github.com/microsoft/vscode-python/milestone/49
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.