Disable Cut and Copy in context menu in Monaco editor
问题 I am using monaco-editor, i see that cut and copy is added in the context menu in later versions. i want to remove these two options from context menu. Please let me know how can i achieve it? 回答1: Hide individual items with CSS I tried this code in the browser and it worked. // Hide from cut on .context-view li.action-item:nth-child(n + 9) { display: none !important; } // Show command palette .context-view li.action-item:last-child { display: flex !important; } Disable the entire menu with