paste is disabled in the app designer

조회 수: 56 (최근 30일)
Scott
Scott 2017년 2월 23일
댓글: liang jiong 2023년 4월 30일
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
  댓글 수: 8
Jan Rédr
Jan Rédr 2021년 12월 14일
Hello,
I am using R2020a version and experienced the same behaviour - I could not copy and paste in code view of Appdesigner. For me worked restarting Matlab and it worked fine.
Frank
Frank 2022년 1월 1일
I have the same problem. Using R2021b in Windows 10. Somehow copy/paste becomes disabled in app designer code view editing and paste does not appear as an option in the dropdown. I tried copy/pasting into a word file, then back, using keyboard shortcuts, and a few other things that didd not work. Finally, I tried saving what I needed to, quitting matlab, then restarting it. That worked, so far. If it returns during this work session, I will update this comment.

댓글을 달려면 로그인하십시오.

답변 (6개)

Aravind C G
Aravind C G 2019년 3월 11일
편집: Aravind C G 2019년 3월 24일
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.
Possible Cause:
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
Melissa Williams 2018년 1월 25일
Hi Scott,
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
  댓글 수: 11
Daniel Dieterle
Daniel Dieterle 2020년 9월 2일
Same Problem Win10, Matlabversion 2019b,
Charles Holman
Charles Holman 2020년 11월 2일
This issue still happens to me with 2020a as well. The fix I use:
Type something into the main Command Window, then drag it (not copy/paste) onto the App Designer.

댓글을 달려면 로그인하십시오.


Melissa Williams
Melissa Williams 2019년 1월 10일
Hi everyone,
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.
  댓글 수: 10
Johnny B
Johnny B 2021년 6월 4일
It happens to me with Live Scripts.
-----------------------------------------------------------------------------------------------------
MATLAB Version: 9.9.0.1467703 (R2020b)
MATLAB License Number: 249102
Operating System: Microsoft Windows 10 Enterprise Version 10.0 (Build 18363)
Java Version: Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
-----------------------------------------------------------------------------------------------------
I've tried right-clicking to bring up the context menu, and "paste" is disabled (grayed out), so the Live Editor clearly doesn't think that there's anything in the clipboard. I can switch to a regular .m file in the editor and paste the text I copied from the Live Editor, so it appears that "copy" is working.
I haven't yet found the trigger nor a reliable fix. I've had the same problem on a different Windows system with R2019a, but not on yet another Windows PC with R2017b.
liang jiong
liang jiong 2023년 4월 30일
Same issue on Windows 10 in the Matlab R2019b

댓글을 달려면 로그인하십시오.


ahmadreza keihani
ahmadreza keihani 2021년 7월 2일
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
Sigurd Askeland 2021년 8월 20일
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
Ramiro Massol 2021년 8월 20일
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.

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by