paste is disabled in the app designer
76 visualizzazioni (ultimi 30 giorni)
Does anybody else find that "Paste" (as in clipboard copy and paste) is disabled when editing code in the "App Designer". I have no issues at all with pasting with the regular Matlab editor; only when using the App Designer. If I use Ctrl-V, nothing happens and if I right click with the mouse, "Paste" is greyed out.
I did some searching and see where some have had this issue with the regular editor 3 or 4 years ago and their solution was to reboot. I've tried that with no luck. Windows 7, 64 Bit. Matlab 2016B Thanks in advance! S
Aravind C G il 11 Mar 2019
Modificato: Aravind C G il 24 Mar 2019
The fix that worked for me:
1) Return to design view. Copy paste a random element. Delete it.
2) Go back to code view. Try copy pasting. It should work.
EDIT: This bug happened to me once again, don't know the cause. But the above fix no longer worked. (March 23,2019)
Things that didn't work:
Just closing and reopening the same file in app designer
Restarting App Designer only (not restarting matlab) and then opening up the file again.
I think there is some issue with how App Designer switches between the two clipboards (that Melissa mentions below) when you change views. Will update this answer if I find the steps to reproduce the issue.
Melissa Williams il 25 Gen 2018
App Designer has two different clipboards, one for actions completed in the design area and one for text edits. If you are finding the paste buttons disabled when you want to paste in the text editor, try using the keyboard shortcut ctrl+v. However, this shouldn't be necessary because the paste buttons are for the editor in code view and the design area in design view. Please let me know if this issue persists and if so, what version of MATLAB you are using.
Melissa Williams il 10 Gen 2019
If you are experiencing issues pasting, could you contact MATLAB tech support and let us know what OS and version of MATLAB and also if this is in the regular editor, editing a Live Script or in App Designer. Also if it's all the time or only after certain actions. Those details will help us narrow down why this happens sometimes and help offer suggestions.
ahmadreza keihani il 2 Lug 2021
I have faced the same problem in MATLAB 2020b.
I have tried to drag and drop the selected section of code I want to paste in Code View as below.
It was an alternative solution for me!
Sigurd Askeland il 20 Ago 2021
I have a work-around:
In my case (R2020b) copying works, but not paste. Also, moving by dragging works.
- I copy from the code view.
- I paste into the regular editor.
- I drag from the regular editor into code view.
Ramiro Massol il 20 Ago 2021
hi, copy & paste works in R2021a but the problem is that when your code is long it takes literally crazy long for paste (10 or 20 sec) to execute. To make matters worse, once you trigger "paste", you can still type code and then your paste will be done whereever you are currently editing.