I can open a file in exclipse, but is there any syntax to jump to a specific line?
VI can do this by
vi -c LINE filename
Thanks! Hal, Ctrl-L prompts you to go to a line number.
Search – Eclipse Shortcuts CTRL SHIFT G – Search for current cursor positioned word reference in workspace. CTRL H – Java search in workspace.
alt+left and alt+right — navigate through my source to back and forward. shortcuts for navigate > back and navigate > forward and backward . ctrl+m — maximizes the current view or editor. press ctrl+m again and it goes back to the previous size.
Not exactly the right answer, but for Java file, you can use the package explorer, or the outline view, useful to select a group of lines) and open the file to the line matching a Java element (class, method, variable, ...)
Once the file is already opened, CTRL+L is the way to go to a line of the currently edited file, as Adi mentions in the comment.
Finally fixed!!
On Windows:
eclipsec.exe -name Eclipse --launcher.openFile %USERPROFILE%\workspace\MyClass.java:50
On Linux/Mac:
eclipse -name Eclipse --launcher.openFile ~/workspace/MyClass.java:50
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With