1
我正在尋找「com.intellij.openapi」中獲取文件名,行和列並調用「Go to Line」的方法。如何通過「com.intellij.openapi」調用「Go to Line」?
此方法將導航到位置(「不會打開窗口轉到行」)。
我正在尋找「com.intellij.openapi」中獲取文件名,行和列並調用「Go to Line」的方法。如何通過「com.intellij.openapi」調用「Go to Line」?
此方法將導航到位置(「不會打開窗口轉到行」)。
new OpenFileDescriptor(project, file, line, column).navigate(...)
getEditor().getCaretModel().moveToLogicalPosition(new LogicalPosition(line, column));
謝謝! 除了移動位置之外,這實際上還會執行跳轉操作。 –