opentoline(filename, linenumber)
opentoline(filename, linenumber, columnnumber)
| Parameter | Description |
|---|---|
| filename | a string: path of the file to open. |
| linenumber | a number: line to place the cursor on (1 or more). |
| columnnumber | a number: column of that line (1 or more); the end of a short line is the limit. |
opentoline opens filename in the text editor and places the cursor at linenumber, at the start of the line or at columnnumber.
The line numbers printed by the debugger at a stop, and the locations of error messages, are links that call the same behaviour in the Qt and web desktops.
opentoline(which('opentoline'), 10, 3)
| Version | Description |
|---|---|
| 2.0.0 | initial version |