vscode-paste-and-indent
vscode-paste-and-indent copied to clipboard
Stops working with the latest VS Code
Thank you for a great plugin, I use it much. But on my latest VS Code it stops working very often. I use default keybindings from install manual:
{
"key": "cmd+v",
"command": "pasteAndIndent.action",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "cmd+v",
"command": "editor.action.clipboardPasteAction",
"when": "!editorTextFocus"
},
{
"key": "cmd+shift+v",
"command": "editor.action.clipboardPasteAction",
"when": "editorTextFocus && !editorReadonly"
}
But sometimes it stops working for ctrl+v and starts working only for ctrl+shift+v
And when I reload VS Code it starts working again just fine.
Maybe there is some problems with keybindings?
I haven't noticed any breaking changes on the latest VSCode release but I will check it out. In the meantime if you are using Windows please change cmd to ctrl at the keybindings and see if it solves your problem.
@rubymaniac sorry, forgot to mention. I'm using Mac OS and it is happening across few macs I have
Yes, I have the same issue on Windows 10 vscode (1.12) The indent stops working when pasting.
I noticed that the paste indent is correct if I press ctr+z after ctrl+v (paste and indent command). When I press ctrl+z again, it will then undo my paste action.
Can you please provide an example with the actual and the expected outcomes after performing paste and indent? I wanna see if it is a bug or a misconfiguration from your part.
On Sat, May 6, 2017 at 4:21 PM, benxshen [email protected] wrote:
Yes, I have the same issue on Windows 10 vscode (1.12) The indent stops working when pasting.
I noticed that the paste indent is correct if I press ctr+z after ctrl+v (paste and indent command). When I press ctrl+z again, it will then undo my paste action.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/rubymaniac/vscode-paste-and-indent/issues/6#issuecomment-299639580, or mute the thread https://github.com/notifications/unsubscribe-auth/AAlMSKBYSFoqLIFD2IY1Kt7w4woG0uTlks5r3HPCgaJpZM4NQUmE .
-- Gerry Athanasopoulos Software Engineer
Mobile: +30 693 727 9090 Github: https://github.com/rubymaniac Email: [email protected]
Sorry, it's my wrong. It's working fine.
VSCode v1.13.0 on Windows 10:
User Settings:
{ "editor.fontFamily": "Inconsolata, Consolas, 'Courier New, monospace", "editor.fontSize": 16, "editor.lineHeight": 20, "editor.tabSize": 2, "emmet.syntaxProfiles": { "javascript": "jsx" }, "editor.minimap.enabled": false, "editor.renderIndentGuides": false, "editor.dragAndDrop": true, "files.associations": { "*.js": "javascriptreact" }, "files.trimTrailingWhitespace": true, "vsicons.projectDetection.autoReload": true, "window.zoomLevel": 1, "workbench.welcome.enabled": false, "workbench.iconTheme": "vscode-icons", "sync.gist": "<redacted>", "sync.lastUpload": "2017-05-22T14:22:33.773Z", "sync.autoDownload": true, "sync.autoUpload": true, "sync.lastDownload": "2017-06-13T04:21:26.431Z", "sync.forceDownload": false, "sync.anonymousGist": false, "sync.host": "", "sync.pathPrefix": "", "sync.quietSync": false }
keybindings.json:
[ { "key": "ctrl+v", "command": "pasteAndIndent.action", "when": "editorTextFocus && !editorReadonly" }, { "key": "ctrl+v", "command": "editor.action.clipboardPasteAction", "when": "!editorTextFocus" }, { "key": "ctrl+shift+v", "command": "editor.action.clipboardPasteAction", "when": "editorTextFocus && !editorReadonly" } ]
Copy pasting works for a while, then after a few times pasting, I can no longer paste. (ctrl+v). If I close VSCode and re-open, it works again for a while. No errors appear anywhere I can find. If I disable this extension, my copy-paste works again. No idea what's going on, but if you need anything else from me I'd be glad to provide.
@JayV30 I haven't got my hands on a Windows 10 machine yet, so I cannot reproduce the issue. Can you please Open Developer Tools and report here any exceptions (related to paste-and-indent)?
On a mac you can find it under Help menu (Help -> Open Developer Tools).
@rubymaniac I got the same problem. Also on a Mac. I noticed that it doesn't stop working, though. It's just super delayed. The paste happens after anywhere between a few to 20 seconds. There's also no error being logged in the developer tools.
@CalvinWalzel I am also on a Mac with the latest VSCode with no problems whatsoever. Can you please check with the latest VSCode?
@rubymaniac it would be nice if the Windows ctrl requirement was documented, i ended up here because I couldn't find that anywhere else
I've experienced this problem as described for ages. I thought it was a problem with some other extension so I've been going through and disabling/re-enabling them one by one as I notice the issue pop up. No luck.
I'm on the latest macOS Mojave, everything up to date.
Has anyone discovered a solution?
That gives a command not found error when attempting to paste.
I only just started noticing this happening: sometimes the paste is really delayed. I'm also on Mac.