When I left-click on something like In[1] in the margin of a notebook (as appears when running a Cell) it automatically gets copied to the clipboard so that if I paste I get In[1] instead of what was previously there. How can I disable this? (I accidentally click on In or Out much more often than I actually want to use this feature.)

Version: "12.1.1 for Linux x86 (64-bit) (June 19, 2020)"

Screenshot for clarification:

enter image description here

The text In[849]:= gets copied to the clipboard if I left-click on In[849]:=. I pasted it in the cell below to visualize this.

  • $\begingroup$ I cannot reproduce this on macOS. Can you be more specific about what you do to trigger copying? $\endgroup$
    – Szabolcs
    Aug 12 '21 at 11:07
  • $\begingroup$ @Szabolcs, I thought this would be universal. Perhaps it only happens on Linux. I clarified it as much as I can now, but if you can't reproduce it I think it is more likely that your Mathematica is not showing the same behavior as mine. $\endgroup$
    – Kvothe
    Aug 12 '21 at 11:22
  • $\begingroup$ No, I still cannot reproduce it on macOS. I cannot test this on Linux at the moment. I can only copy it by first left-clicking, then right-clicking and choosing "Copy". $\endgroup$
    – Szabolcs
    Aug 12 '21 at 11:25
  • $\begingroup$ Ok. For me just left clicking automatically copies it to the clipboard. $\endgroup$
    – Kvothe
    Aug 12 '21 at 11:44
  • 1
    $\begingroup$ Cannot replicate this on 12.2.0 Win x64. I have to press Ctrl-C when the In[..]:= part highlights otherwise it is not copied to the clipboard. $\endgroup$
    – Syed
    Aug 12 '21 at 13:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.