Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New PasteAs does not allow to choose default way to paste #184871

Closed
ollikoponenbel opened this issue Jun 12, 2023 · 1 comment · Fixed by #233031
Closed

New PasteAs does not allow to choose default way to paste #184871

ollikoponenbel opened this issue Jun 12, 2023 · 1 comment · Fixed by #233031
Assignees
Labels
feature-request Request for new features or functionality insiders-released Patch has been released in VS Code Insiders on-testplan
Milestone

Comments

@ollikoponenbel
Copy link

Type: Bug

Hi

The idea of of the 1.79 new "PasteAs" is great, but it totally broke my workflow. I have used copy-paste rows without any selection. This has previously pasted the current row below the cursor row.

With "PasteAs" enabled, this behaviour has changed (to worse)

  • if I am at the end of the line, paste will add the current row on the same row, with preceding white spaces.
  • if I am in the middle of the line, the line is paster (again, with preceding white spaces) to current position

Currently my fix is to disable the feature
"editor.pasteAs.showPasteSelector": "never",
"editor.pasteAs.enabled": false,

VS Code version: Code 1.79.0 (b380da4, 2023-06-07T14:28:44.251Z)
OS version: Linux x64 6.2.0-20-generic
Modes:

System Info
Item Value
CPUs 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz (8 x 2341)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) 2, 2, 2
Memory (System) 15.32GB (4.76GB free)
Process Argv --unity-launch --crash-reporter-id 058641ec-6c83-4f22-873d-961543d63c45
Screen Reader no
VM 0%
DESKTOP_SESSION ubuntu
XDG_CURRENT_DESKTOP Unity
XDG_SESSION_DESKTOP ubuntu
XDG_SESSION_TYPE wayland
Extensions (29)
Extension Author (truncated) Version
better-comments aar 3.0.2
vscode-sql-formatter adp 1.4.4
Bookmarks ale 13.3.1
aurelia Aur 2.1.4
vscode-django bat 1.10.0
django-html bib 1.3.0
path-intellisense chr 2.8.4
vscode-eslint dba 2.4.0
githistory don 0.6.20
EditorConfig Edi 0.16.4
vscode-ember-unstable lif 3.0.51
isort ms- 2022.8.0
python ms- 2023.10.0
vscode-pylance ms- 2023.6.10
tsimporter pmn 2.0.1
java red 1.19.0
vscode-xml red 0.25.0
scala sca 0.5.6
django-intellisense sha 0.0.2
sonarlint-vscode Son 3.18.0
autoimport ste 1.5.4
svelte-vscode sve 107.5.1
vscodeintellicode Vis 1.2.30
vscode-java-debug vsc 0.51.0
vscode-java-dependency vsc 0.23.0
vscode-java-pack vsc 0.25.11
vscode-maven vsc 0.41.0
volar Vue 1.6.4
vscode-typescript-vue-plugin Vue 1.6.5
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstes516:30244333
vslsvsres303:30308271
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscorecescf:30445987
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593cf:30376535
pythonvs932:30410667
cppdebug:30492333
vscaac:30438847
vsclangdf:30486550
c4g48928:30535728
dsvsc012cf:30540253
pynewext54:30695312
azure-dev_surveyonecf:30548226
2e4cg342:30602488
pyind779:30671433
89544117:30613380
pythonsymbol12:30671437
a9j8j154:30646983
showlangstatbar:30737416
vsctsb:30748421
pythonms35:30701012
03d35959:30757346
57b77579:30736110
pythonfmttext:30731395
pythoncmvfstrcf:30756944
fixshowwlkth:30730052
hidesbindicator:30760978
pythongtdpath:30739704
dh2dc718:30763024
pythonnosm12tcf:30757130

@Tyriar Tyriar assigned mjbvz and unassigned Tyriar Jun 12, 2023
@mjbvz mjbvz added this to the On Deck milestone Jun 12, 2023
@mjbvz mjbvz added the feature-request Request for new features or functionality label Mar 21, 2024
@mjbvz mjbvz modified the milestones: On Deck, April 2024 Mar 21, 2024
@mjbvz mjbvz modified the milestones: April 2024, May 2024 Apr 22, 2024
@mjbvz mjbvz modified the milestones: May 2024, June 2024 May 24, 2024
@mjbvz mjbvz modified the milestones: June 2024, July 2024 Jun 24, 2024
@mjbvz mjbvz modified the milestones: July 2024, August 2024 Jul 24, 2024
@mjbvz mjbvz modified the milestones: August 2024, September 2024 Aug 26, 2024
@mjbvz mjbvz modified the milestones: September 2024, October 2024 Sep 23, 2024
@mjbvz mjbvz modified the milestones: October 2024, November 2024 Oct 24, 2024
mjbvz added a commit to mjbvz/vscode that referenced this issue Nov 4, 2024
…default

Fixes microsoft#184871
For microsoft#30066

Adds new settings that let you configure the default way to paste/drop.

Also enables js/ts paste with imports by default for 5.7+. However will not apply by default. Instead it will be shown as an option after pasting. You can then use the `editor.pasteAs.preferences` setting to make it apply automatically or use the `javascript.updateImportsOnPaste.enabled` settings to disable the feature entirely
@mjbvz mjbvz closed this as completed in 54d81cd Nov 5, 2024
@vs-code-engineering vs-code-engineering bot added the unreleased Patch has not yet been released in VS Code Insiders label Nov 5, 2024
@vs-code-engineering vs-code-engineering bot added insiders-released Patch has been released in VS Code Insiders and removed unreleased Patch has not yet been released in VS Code Insiders labels Nov 5, 2024
@mjbvz
Copy link
Collaborator

mjbvz commented Dec 2, 2024

Will be tested in #235016

@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Dec 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality insiders-released Patch has been released in VS Code Insiders on-testplan
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants