How to call the window of IDEA code comparison in the plug-in?

Answered

I have a question about plug-in development. I have two code strings and I want to use the Code comparison window of IDEA to compare their differences. Can you tell me how to write code to call the window API?

0
2 comments

com.intellij.diff.requests.SimpleDiffRequest -> com.intellij.diff.DiffManager#showDiff(com.intellij.openapi.project.Project, com.intellij.diff.requests.DiffRequest)

see also https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000508990-how-to-invoke-the-built-in-diff-action

0

Thank you. Perfect solution to my problem.

0

Please sign in to leave a comment.