How to open a file in the editor?

Answered

I want an API to help me open a file on disk in the editor. The scene is shown in the figure below. Thanks.

2 comments
Comment actions Permalink

Hi Lizhiqun1994,

You can use com.intellij.openapi.fileEditor.OpenFileDescriptor to achieve this.

1
Comment actions Permalink

Thank, it can work.

0

Please sign in to leave a comment.