代码之家  ›  专栏  ›  技术社区  ›  Rotem E

如何通过“com.intellij.openapi”调用“Go to Line”?

  •  1
  • Rotem E  · 技术社区  · 9 年前

    我在“com.intellij.openapi”中寻找一个方法,它可以获取文件名、行和列,并调用“转到行”。

    此方法将导航到该位置(“Not will open the window Go to Line”)。

    enter image description here

    2 回复  |  直到 9 年前
        1
  •  1
  •   Peter Gromov    9 年前
    new OpenFileDescriptor(project, file, line, column).navigate(...)
    
        2
  •  0
  •   spongebob    9 年前
    getEditor().getCaretModel().moveToLogicalPosition(new LogicalPosition(line, column));