Sublime Forum

How to use Visual Studio Code as editor?

#1

I’ve been trying to use Visual Studio Code as an editor for Sublime Merge. The syntax to open a file at a specific line for vscode would be:

/usr/local/bin/code --goto /path/to/file:5:1

Since, for unknown reason, Sublime Merge hide the editor argument format on macOS, I’ve tried to add it directly to Preferences.sublime-setting like so:

"editor_argument_format": "--goto \"${file}:${line}:${col}\"",
"editor_path": "/usr/local/bin/code",

However when I try to edit a file, it simply does nothing with no error message. Any idea how to get it working?

0 Likes

#2

Try the below ?

“editor_argument_format": "-g ${file}:${line}:${col}"

0 Likes

#3

I’m using:

	"editor_path": "/usr/bin/code",
	"editor_argument_format": "--goto ${file}:${line}:${col}",
0 Likes