Ctrl+P
Just select a block of text and press, right click and select the Capture Code option.
image result