1. From IDE console to gedit[edit source]
Selecting a text area in an Opened Console it is possible to copy it to the Clipboard with: < CTRL > + < inser >.
You will then be able to paste with: < CTRL > + V.
2. From gedit to STM32CubeIDE console[edit source]
Selecting a text area in your gedit text editor, you usually copy it to the Clipboard with: < CTRL > + C.
It is possible to paste it to the IDE Console with: < SHIFT > + < inser >.