René's URL Explorer Experiment


Title: Bad auto indent of line to previous code block when pasting at the beginning of the line · Issue #6927 · microsoft/vscode-python · GitHub

Open Graph Title: Bad auto indent of line to previous code block when pasting at the beginning of the line · Issue #6927 · microsoft/vscode-python

X Title: Bad auto indent of line to previous code block when pasting at the beginning of the line · Issue #6927 · microsoft/vscode-python

Description: If a line is below a code block (if, for, try def etc) but not part of the code block and you paste something where the selection start is at the beginning of the line, the line will auto indent to be a part of the code block. This does ...

Open Graph Description: If a line is below a code block (if, for, try def etc) but not part of the code block and you paste something where the selection start is at the beginning of the line, the line will auto indent to...

X Description: If a line is below a code block (if, for, try def etc) but not part of the code block and you paste something where the selection start is at the beginning of the line, the line will auto indent to...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bad auto indent of line to previous code block when pasting at the beginning of the line","articleBody":"If a line is below a code block (`if`, `for`, `try` `def` etc) but not part of the code block and you paste something where the selection start is at the beginning of the line, the line will auto indent to be a part of the code block. This does not occur if the code block ends with `return`, `break`, `continue` etc.\r\n\r\n## Environment data\r\n\r\nVersion: 1.37.0 (user setup)\r\nCommit: 036a6b1d3ac84e5ca96a17a44e63a87971f8fcc8\r\nDate: 2019-08-08T02:33:50.993Z\r\nElectron: 4.2.7\r\nChrome: 69.0.3497.128\r\nNode.js: 10.11.0\r\nV8: 6.9.427.31-electron.0\r\nOS: Windows_NT x64 10.0.17763\r\nPython Extension: 2019.8.29288\r\nPython Language Server: 0.3.46\r\n\r\n## Expected behaviour\r\n```python\r\nif 1 == 1:\r\n    print('This line belongs to the if')\r\nnewvar = 'not part of if'\r\n```\r\n## Actual behaviour\r\nFor pasting at _beginning_ of line (see 3. below)\r\n```python\r\nif 1 == 1:\r\n    print('This line belongs to the if')\r\n    newvarnewline = 'not part of if'\r\n```\r\nFor pasting _over_ `newline` (see 4. below)\r\n```python\r\nif 1 == 1:\r\n    print('This line belongs to the if')\r\n    newvar = 'not part of if'\r\n```\r\n## Steps to reproduce:\r\n1. Start with these lines:\r\n```python\r\nif 1 == 1:\r\n    print('This line belongs to the if')\r\nnewline = 'not part of if'\r\n```\r\n2. Copy to the clipboard this text: `newvar`\r\n3. Paste the text at the beginning of the line: `|newline = 'not part of if'`\r\n(`|` symbolizes where the cursor is before paste)\r\n4. Alternatively: Highlight `newline` and paste over it with copied text.\r\n","author":{"url":"https://github.com/WhistleWhileYouWork","@type":"Person","name":"WhistleWhileYouWork"},"datePublished":"2019-08-11T16:11:02Z","url":"https://github.com/microsoft/vscode-python/issues/6927"}

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:5ba95229-d09d-4d6b-79a1-40f3befcaea9
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8A40:271FB5:558400:703F56:6AFE6B14
html-safe-noncefc85d1a49530764e5a041e80ffa56d825c82a5e784c066a9429ce8a0f65a4f39
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QTQwOjI3MUZCNTo1NTg0MDA6NzAzRjU2OjZBRkU2QjE0IiwidmlzaXRvcl9pZCI6IjI2ODUxMDczODM2NjI3MDEzMzIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac68380b28e466c6c137e564424259af383e90a7a2a1a9c3eeb01acf699f1ba834
hovercard-subject-tagissue:479385359
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/6927/issue_layout
twitter:imagehttps://opengraph.githubassets.com/b5c249c391e3485b75c95bcc1252555130001393ce0bf02ded9faaa118f29687/microsoft/vscode-python/issues/6927
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b5c249c391e3485b75c95bcc1252555130001393ce0bf02ded9faaa118f29687/microsoft/vscode-python/issues/6927
og:image:altIf a line is below a code block (if, for, try def etc) but not part of the code block and you paste something where the selection start is at the beginning of the line, the line will auto indent to...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameWhistleWhileYouWork
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/6927#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fvscode-python%2Fissues%2F6927
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%2F6927
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/6927
Reloadhttps://github.com/microsoft/vscode-python/issues/6927
Reloadhttps://github.com/microsoft/vscode-python/issues/6927
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/6927
New issuehttps://github.com/login?return_to=https://github.com/microsoft/vscode-python/issues/6927
Bad auto indent of line to previous code block when pasting at the beginning of the linehttps://github.com/microsoft/vscode-python/issues/6927#top
https://github.com/DonJayamanne
https://github.com/karrtikr
https://github.com/kimadeline
bugIssue identified by VS Code Team member as probable bughttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22bug%22
regressionBug didn't exist in a previous releasehttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22regression%22
2019 - July Sprint 15https://github.com/microsoft/vscode-python/milestone/37
https://github.com/WhistleWhileYouWork
WhistleWhileYouWorkhttps://github.com/WhistleWhileYouWork
on Aug 11, 2019https://github.com/microsoft/vscode-python/issues/6927#issue-479385359
WhistleWhileYouWorkhttps://github.com/WhistleWhileYouWork
triage-neededNeeds assignment to the proper sub-teamhttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22triage-needed%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 Aug 11, 2019https://github.com/microsoft/vscode-python/issues/6927#event-2548705951
https://github.com/ascheucher
Andreas Scheucher (ascheucher)https://github.com/ascheucher
on Aug 12, 2019https://github.com/microsoft/vscode-python/issues/6927#issuecomment-520367363
https://github.com/ascheucher
Andreas Scheucher (ascheucher)https://github.com/ascheucher
on Aug 12, 2019https://github.com/microsoft/vscode-python/issues/6927#issuecomment-520369457
https://github.com/WhistleWhileYouWork
WhistleWhileYouWorkhttps://github.com/WhistleWhileYouWork
on Aug 12, 2019https://github.com/microsoft/vscode-python/issues/6927#issuecomment-520433152
#6886https://github.com/microsoft/vscode-python/issues/6886
#6886https://github.com/microsoft/vscode-python/issues/6886
Brett Cannon (brettcannon)https://github.com/brettcannon
triagehttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22triage%22
on Aug 12, 2019https://github.com/microsoft/vscode-python/issues/6927#event-2550983466
triage-neededNeeds assignment to the proper sub-teamhttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22triage-needed%22
on Aug 12, 2019https://github.com/microsoft/vscode-python/issues/6927#event-2550983551
Brett Cannon (brettcannon)https://github.com/brettcannon
Kim-Adeline Miguel (kimadeline)https://github.com/kimadeline
on Aug 12, 2019https://github.com/microsoft/vscode-python/issues/6927#event-2550983786
Kim-Adeline Miguel (kimadeline)https://github.com/kimadeline
needs PRhttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22needs%20PR%22
regressionBug didn't exist in a previous releasehttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22regression%22
triagehttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22triage%22
on Aug 12, 2019https://github.com/microsoft/vscode-python/issues/6927#event-2551290305
https://github.com/kimadeline
Kim-Adeline Miguel (kimadeline)https://github.com/kimadeline
on Aug 12, 2019https://github.com/microsoft/vscode-python/issues/6927#issuecomment-520569458
WhistleWhileYouWorkhttps://github.com/WhistleWhileYouWork
Andreas Scheucher (@ascheucher)https://github.com/ascheucher
#6886https://github.com/microsoft/vscode-python/issues/6886
Kim-Adeline Miguel (kimadeline)https://github.com/kimadeline
unplannedhttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22unplanned%22
on Aug 13, 2019https://github.com/microsoft/vscode-python/issues/6927#event-2553803678
Kim-Adeline Miguel (kimadeline)https://github.com/kimadeline
2019 - July Sprint 15https://github.com/microsoft/vscode-python/milestone/37
on Aug 13, 2019https://github.com/microsoft/vscode-python/issues/6927#event-2553803988
Don Jayamanne (DonJayamanne)https://github.com/DonJayamanne
Don Jayamanne (DonJayamanne)https://github.com/DonJayamanne
Eric Snow (ericsnowcurrently)https://github.com/ericsnowcurrently
Kartik Raj (karrtikr)https://github.com/karrtikr
on Aug 13, 2019https://github.com/microsoft/vscode-python/issues/6927#event-2554140735
https://github.com/ericsnowcurrently
Eric Snow (ericsnowcurrently)https://github.com/ericsnowcurrently
on Aug 13, 2019https://github.com/microsoft/vscode-python/issues/6927#issuecomment-520932616
WhistleWhileYouWorkhttps://github.com/WhistleWhileYouWork
Eric Snow (ericsnowcurrently)https://github.com/ericsnowcurrently
on Aug 13, 2019https://github.com/microsoft/vscode-python/issues/6927#event-2554168537
Eric Snow (ericsnowcurrently)https://github.com/ericsnowcurrently
completedhttps://github.com/microsoft/vscode-python/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Aug 13, 2019https://github.com/microsoft/vscode-python/issues/6927#event-2554295356
needs PRhttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22needs%20PR%22
on Aug 13, 2019https://github.com/microsoft/vscode-python/issues/6927#event-2554295473
https://github.com/luabud
Luciana Abud (luabud)https://github.com/luabud
on Aug 13, 2019https://github.com/microsoft/vscode-python/issues/6927#issuecomment-520956205
herehttps://pvsc.blob.core.windows.net/extension-builds/ms-python-insiders.vsix
blog posthttps://devblogs.microsoft.com/python/python-in-visual-studio-code-august-2019-release/
lockhttps://github.com/apps/lock
on Aug 20, 2019https://github.com/microsoft/vscode-python/issues/6927#event-2570719381
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/vscode-python/issues/6927
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/vscode-python/issues/6927
Don Jayamanne (DonJayamanne)https://github.com/DonJayamanne
Kartik Raj (karrtikr)https://github.com/karrtikr
Kim-Adeline Miguel (kimadeline)https://github.com/kimadeline
bugIssue identified by VS Code Team member as probable bughttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22bug%22
regressionBug didn't exist in a previous releasehttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22regression%22
2019 - July Sprint 15https://github.com/microsoft/vscode-python/milestone/37
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.