Currently, the Go to line shortcut (CTRL+G in windows/linux) only allows to navigate to a specific line.
It would be nice to optionally allow the column number to be specified after comma, e.g.
:30,11
to go to line 30, column 11
Is there any plugin or custom script to achieve this?
Update 3
This is now part of Sublime Text 3 starting in build number 3080:
For example, you can use
:30:11
to go to line 30, column 11.Update 1 - outdated
I just realized you've tagged this as
sublime-text-3
and I'm using 2. It may work for you, but I haven't tested in 3.Update 2 - outdated
Edit 3: all requirements of the package_control repo have been met. this package is now available in the package repository in the application ( install -> GotoRowCol to install ).
I too would like this feature. There's probably a better way to distribute this but I haven't really invested a lot of time into it. I read through some plugin dev tutorial really quick, and used some other plugin code to patch this thing together.
Select the menu option
Tools
->New Plugin
A new example template will open up. Paste this into the template:
Save the file. When the "Save As" dialog opens, it should be in the the
Sublime Text 2\Packages\User\
directory. Navigate up one level to and create the folderSublime Text 2\Packages\GotoRowCol\
and save the file with the nameGotoRowCol.py
.Create a new file in the same directory
Sublime Text 2\Packages\GotoRowCol\GotoRowCol.sublime-commands
and openGotoRowCol.sublime-commands
in sublime text. Paste this into the file:Save the file. This should register the GotoRowCol plugin in the sublime text system. To use it, hit
ctrl
+shift
+p
then type GotoRowCol and hitENTER
. A prompt will show up at the bottom of the sublime text window with two number prepopulated, the first one is the row you want to go to, the second one is the column. Enter the values you desire, then hitENTER
.I know this is a complex operation, but it's what I have right now and is working for me.