Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When opening a directory through command line, Sublime text opens two windows instead of one

Tags:

sublimetext2

If I open a directory in Sublime using the command line (subl path/to/my/folder/), Sublime will open two instances: one with the directory I asked for, and another one with the directory I opened last time I used Sublime. Any idea why ?

I don't know if it's revelant, but the problem occurs with Ubuntu 12.04.

like image 928
Anto Avatar asked Aug 30 '12 09:08

Anto


People also ask

How do I open Sublime Text in a folder?

If you often work on the different projects in Sublime Text being able to open the current path in Terminal is a big time saver. Run this command in Terminal now when you type subl Sublime Text should open. Now to open a folder type subl . will open the current folder in Sublime Text.

How do I open a Sublime Text file in Terminal?

Just Use the command subl to open sublime text from terminal. if you want to open a specific file use subl path/to/the/file .

What is the Run command in Sublime Text?

To run the code, press Command B or go to Tools -> Build. As you can see, my Sublime Text is running Python 2.7.


Video Answer


1 Answers

Thanks for the link, this worked for me.

Do the following: Preferences > Settings - User

Once you enter the file 'Preferences.sublime.settings' add between the brackets following lines.

{   "hot_exit": false,   "remember_open_files": false } 
like image 77
geynske006 Avatar answered Oct 22 '22 01:10

geynske006