User forums > Using Code::Blocks
Copy and Paste does not work
alexchen:
I am using Code::Blocks 20.03 in a CentOS VM (under VMware). I notice that 'copy' and 'paste' does not work in my C++ source windows.
In order to 'copy and paste' from one place to somewhere else, I have to 'cut' it then paste it back to the original location and to the new place.
Has anyone noticed this problem or is it only me?
Thanks
Alex
oBFusCATed:
Do you use some non-english keyboard layouts?
alexchen:
I use VMware Fusion (version 11.56) on an MacPro (the cylinder) running macOS Catalina and use English Apple keyboard. CentOS is 7.8.
I use the standard 'dragging the mouse while holding left-button' for text selection, and 'clicking the right-button' to trigger 'cut'/'copy'/'paste' pop-up selection in Code::Block's text window. I am not using keyboard shortcut of physical keyboard, therefore keyboard type should not be the issue. I have another CentOS VM in a different MacPro that runs Windows 10 from macOS BootCamp partition and it shows the same problem, therefore host OS type is not an issue, either.
'Cut and paste' operation works, but not 'Copy and Paste'. I get nothing in the destination from the clipboard buffer
Here is my result in 20.03 version.
* Open a C++ project and a couple of source file windows, i.e. CPP file header file.
* Select some statements or comment lines with left-button click and dragging in one window then 'copy' them with right-button pop-up selection.
* Move to another window or stay in the same window but go to a different location and select 'paste' with right-button click.
* Nothing gets pasted in the destination.
* Repeat the process with 'cut' selection in step 2 above and the selection is pasted in the destination.
I try 'copy/paste' operation between 'grim' (graphical VIM) window in CentOS vim-X11 RPM package and Code::Blocks windows and amazingly it work fine.
(Copy with gvim's 'Copy to Clipboard' icon at the top menu' and 'paste' with Code::Block's mouse selection.)
oBFusCATed:
Works in a native gentoo linux machine. And inside ubuntu 20.04. Tomorrow I'll try my native centos7 build, but I doubt there would be problems.
Can you post the text in Help -> About -> Information?
alexchen:
This is the information:
Name : Code::Blocks
Version : 20.03-r11997
SDK Version : 2.0.0
Scintilla Version: 3.75.0
Author : The Code::Blocks Team
E-mail : info@codeblocks.org
Website : http://www.codeblocks.org
(Strangely, I can copy the information from Code::Block's Help pop-up windows in CentOS VM and paste it to this window in macOS Safari. windows.)
I also try the same operation in an Ubuntu 18.04 VM running on the same MacPro machine and it works as expected.
Navigation
[0] Message Index
[#] Next page
Go to full version