Sublime Text 2 opens files in new window

A small annoyance of Sublime Text 2 for me was the fact that it always opened files in new windows instead of reusing the existing ones (OS X only). It turns out it's quite easy to change this behavior. Here's how:

Sublime Text 2 menu > Preferences > Settings - Default

Now search for the following: open_files_in_new_window

The line will look like this:

// OS X only: When files are opened from finder, or by dragging onto the
// dock icon, this controls if a new window is created or not.
"open_files_in_new_window": true,

Just change "true" to "false" and you're done!
Now whenever you open a file it will reuse any existing window you already have.

1 comment to Sublime Text 2 opens files in new window

  • Jan Gronemann

    You shouldn’t edit the defaults as you risk updates changing the default files.

    Instead, copy the relevant bits to the User settings file (cmd+,) and change them there.

    Thanks for sharing though :-)

Leave a Reply




You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>