Home:ALL Converter>How to open file in Sublime Text 2 from command line in specific project windows

How to open file in Sublime Text 2 from command line in specific project windows

Ask Time:2013-08-15T17:30:15         Author:Jiri

Json Formatter

I want to open file in sublime text from commandline, like this (I am using Sublime Text 2 for Windows):

c:\path\sublime_text.exe" file.cpp

But I have 1-3 open windows/projects and I want to specify in which window the file should be open. Is it possible to do this?

I tried --project command line switch but it opens new project window every time.

Without --project, the files are open in last used sublime text window and even files from one open project directory are opened in the last used window (and this can be other project window).

I know I can solve this by edit everything in one project/one window but I prefer to have one window for every project if possible.

Author:Jiri,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/18249895/how-to-open-file-in-sublime-text-2-from-command-line-in-specific-project-windows
yy