Escaping content on plugin

Answered

Hi,

I'd like to paste content from an intellij plugin. I'm already able to do so using

EditorModificationUtil.insertStringAtCaret

However, I would like to use "Escape text on paste in string literals". Is there any internal method that escapes a string considering the type of file that I am at and where I want to paste?

Thanks

1 comment
Comment actions Permalink

See EP com.intellij.codeInsight.editorActions.CopyPastePreProcessor

0

Please sign in to leave a comment.