Sublime Forum

Commmand Line parameter to jump to line # [solved]

#1

I’m looking for the command-line parameter to load a file and jump to the specified line number.

Example: sublime_text.exe X:\test.txt#123

I’ve tried a few guesses, but no luck. Maybe I’m missing something or it doesn’t exist.

In case the community knows, Is this a feature that could get added via a plugin?

0 Likes

#2

This way works on Linux:

./sublime_text /file_path/file_name:line_number:
0 Likes

#3

Excellent! Thank you!

Yes, it’s indeed two colons.

sublime_text.exe X:\test.txt:123:
0 Likes