How to move cursor to the end of the file?

Hello

I open file by `new OpenFileDescriptor(project, file).navigate(true);`. When the file is opened cursor is placed at the beginning of the file. How to move it to the end of the file?

2 comments
Comment actions Permalink

When you create an OpenFileDescriptor, you can specify an offset in addition to the project and VirtualFile. Set this offset to the length of the file minus one.

0

Please sign in to leave a comment.