How to call the window of IDEA code comparison in the plug-in?
已回答
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?
请先登录再写评论。
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
Thank you. Perfect solution to my problem.