Visual Studio – Open Sublime

A little while ago I tweeted this:

It appears this is entirely kinda possible by wiring up Sublime as an External Tool in Visual Studio:

To open the current Visual Studio file in Sublime Text, do the following:

  1. Add Sublime as an External Tool with
    Arguments: “`$(ItemPath):$(CurLine)“`
    Initial Directory: “`$(ItemDir)“`


2. Create a shortcut key combo to open the current file on the current line:

Tools –> Options –> Keyboard
ExternalCommands[X] where X is the number corresponding to where in the list of external tools Sublime was added.

I use “`[Ctrl]+o+[Ctrl]+s“` for Open Sublime.


And that’s it. Thanks Homey Aryan for the tip!