You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pasting using ⌘V pastes using "smart with selection".
Pasting using ⇧⌘V always pastes the URL directly, overriding any selected text if it exists.
Observed: Smart links are still pasted using "smart with selection".
It seems that the heuristics from #188871 (comment) are overriding the behaviour of "paste as plain text" when the plain text resembles a URL.
The settings note that it's possible to change the paste after the fact. I do not want that. I would like to paste the URL directly as intended without fixing it up afterwards. I am very happy with how GItHub implements it, and I would like to match that in order to decrease cognitive load from context switching.
Perhaps I'm missing something, but I have not been able to make this work using information at #188871 (comment) or anything I've tried with editor.action.pasteAs or editor.action.clipboardPasteAction.
This occurs with extensions disabled.
VS Code version: Code 1.100.2 (848b80a, 2025-05-14T21:47:40.416Z)
OS version: Darwin arm64 24.5.0
Modes:
It would also be helpful if editor.action.pasteAs or editor.action.clipboardPasteAction had any sort of documentation.
Looking up information about editor.action.pasteAs results mainly in finding #183681 , which suggest that the appropriate field to set in "args" is "id". But this seems to be incorrect. The builtin JSON schema checker tells me that "kind" is apparently the correct field now, but I'm not really confident in this.
@mjbvz, apologies if a direct ping is not appropriate, but I'd appreciate help understanding if this is an actual bug or if I need to learn more about VS Code internals to fix the behaviour in settings!
Uh oh!
There was an error while loading. Please reload this page.
Type: Bug
keybindings.json
:Expected: I can match exactly what happens when pasting into GitHub issues:
Observed: Smart links are still pasted using "smart with selection".
It seems that the heuristics from #188871 (comment) are overriding the behaviour of "paste as plain text" when the plain text resembles a URL.
The settings note that it's possible to change the paste after the fact. I do not want that. I would like to paste the URL directly as intended without fixing it up afterwards. I am very happy with how GItHub implements it, and I would like to match that in order to decrease cognitive load from context switching.
Perhaps I'm missing something, but I have not been able to make this work using information at #188871 (comment) or anything I've tried with
editor.action.pasteAs
oreditor.action.clipboardPasteAction
.This occurs with extensions disabled.
VS Code version: Code 1.100.2 (848b80a, 2025-05-14T21:47:40.416Z)
OS version: Darwin arm64 24.5.0
Modes:
System Info
canvas_oop_rasterization: enabled_on
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
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Extensions (40)
A/B Experiments
The text was updated successfully, but these errors were encountered: