Fixing Copy and Paste to IntelliJ IDEA - NICE DCV
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Fixing Copy and Paste to IntelliJ IDEA

When trying to copy text from the macOS NICE DCV Client to IntelliJ IDEA, the text cannot be pasted. IntelliJ can't accept the cross-platform format that NICE DCV uses by default. To disable cross-platform text on NICE DCV so you can paste text into IntelliJ, modify the disabled-targets field on the NICE DCV Server.

This change will prevent copy and paste from working with the NICE DCV web client. Make sure that you want copy and paste for Intellij IDEA to work on only the NICE DCV Client before making this change.

To configure the server to paste text into IntelliJ IDEA
  1. Navigate to /etc/dcv/ and open the dcv.conf with your preferred text editor.

  2. Locate the disabled-targets parameter in the [clipboard] section. If there is no disabled-targets or [clipboard] section, add them manually.

  3. Add the following content to define the value for disabled-targets.

    [clipboard] disabled-targets = ['dcv/text', 'JAVA_DATAFLAVOR:application/x-java-jvm-local-objectref; class=com.intellij.codeInsight.editorActions.FoldingData']
  4. Save and close the file.

  5. Stop and restart the NICE DCV session.