AppDesigner issues: reordering and undeleting callbacks, turning off Code Analyzer markup
35 ビュー (過去 30 日間)
In the AppDesigner code view editor, the callbacks appear in a certain order. I was wondering if there was a way to shuffle them into a different order, other than the obviously inconvenient way of deleting and rewriting them from scratch. Cut & paste doesn't appear to be an option.
Also, I seem to find (this is in R2017a) that when I delete a callback using the context menu in the callbacks tab, there is no going back. In other words, the Undo toolbar button doesn't become active to let me restore it. Is it supposed to be that way?
Finally, is there really no way of suppressing Code Analyzer markup? If I upgrade to R2017b would I have this capability? There is an "Enable app coding alerts" checkbox, but all that does is get rid of warning icons along the right hand edge of the editor. The squiggly red underlining doesn't go away.
Melissa Williams 2018 年 3 月 16 日
Regarding the undoing of deleting a callback, it is undoable. You can either use keyboard shortcut ctrl+z (Be sure to click on the component browser to give the window focus, there was a bug using the context menu that focus got lost). Or you could switch to design view and use the buttons in the toolbar.
When you are in code view, those buttons control undo and redo actions in the editor. When you are in design view the buttons handle all actions outside the editor. The keyboard shortcuts work based on what has focus.
Regarding callback reordering, we are aware this is a painful limitation and are working on improving the experience.
Regarding the turning off the code analyzer, this is not currently possible in App Designer. The "enable app coding alerts" is a separate feature specific to addition alerts App Designer displays to help with Obeject Oriented coding and some graphics limitations. It does not control the code analyzer. I've added a request to add control for code analyzer.
Thanks for the feedback! Melissa
その他の回答 (2 件)
Melissa Williams 2018 年 12 月 12 日
The R2019a pre-release is live as of today. If you have access to it, you can try out:
- reordering your callbacks in App Designer by dragging and dropping them in the Code Browser Callbacks tab (to the left of the Editor window in Code View).
- turning off Code Analyzer - in the MATLAB preferences panel, under Code Analyzer, turn off "Enable integrated warnings and error messages" This change will take effect in both the MATLAB and App Designer editors. (If you already had turned it off for the MATLAB editor, it should just be off in App Designer).
CallumP 2020 年 2 月 9 日