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.

0
2 comments

Hi Lizhiqun1994,

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

1

Thank, it can work.

0

Please sign in to leave a comment.