Use multi-cursor selection for copying code while ignoring what is folded in.
Press Ctrl + Shift and without releasing them start to highlight text that you want to copy with your mouse.
Ctrl
Shift