Is it possible to override YAMLCopyPasteProcessor

Answered

I'm writing a plugin to support my YAML configuration file.

But this function prevents me from pasting plain text. https://github.com/JetBrains/intellij-community/blob/62f0f17610cb4f562a347ae90b5473f570c9360d/plugins/yaml/src/org/jetbrains/yaml/smart/YAMLCopyPasteProcessor.java#L387

If I paste: com.diffplug.spotless

It will become: 

com:
    diffplug:
        spotless:

I don't want to modify the global behavior. Is there a way to override this behavior only for my configuration file. 

0
1 comment

Hi,

Unfortunately, I don't see any place in the code where it can be canceled.

It is configurable in Settings | Editor | General | Smart Keys | YAML, but I understand it is not something you need. You may consider requesting such a possibility at https://youtrack.jetbrains.com/issues/IDEA (Subsystem: Lang. YAML).

0

Please sign in to leave a comment.