Position of PsiElement in editor Jamie Craane Created March 22, 2017 07:00 After searching through the code and forum messages I did not find and answer yet to my problem. Is it possible to find the position (x, y) of a PsiElement in the editor?
For any offset you can use editor.visualPositionToPoint2D(editor.offsetToVisualPosition(offset)). editor.visualPositionToXY can also be used, if integer precision is enough.
Thanks! This worked.