PyCharm provides a number of handy Clipboard operations. You can copy, cut, and paste selected text, a path to a file, or a reference to a symbol or a line of code.

Because PyCharm uses the system Clipboard, you can copy and paste between applications. So doing, when pasting Clipboard entries, PyCharm removes any formatting from the text and any special symbols from the String values.

The Paste command smartly understands what is being inserted. If you paste a reference to a symbol, it is analyzed for possible imports, references, etc. So doing, PyCharm provides the necessary brackets and places the caret at the appropriate insertion point. The Paste Simple command helps paste any Clipboard entry as a plain text, without any analysis.

PyCharm enables Clipboard stacking, which means that you can store multiple Clipboard entries and access them with a single shortcut. The number of entries that can be kept in the Clipboard stack is customizable on the Editor page of the IDE Settings.

  1. Select the desired fragment in the editor.
  2. Do one of the following:
    • On the main menu, choose Edit | Cut.
    • Press Ctrl+X or Shift+Delete.
    • Click the Cut button cut on the toolbar.

See Also

Procedures:

Reference:

Web Resources: