How to move cursor to the end of the file?


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?

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.


Please sign in to leave a comment.