darkavenger
darkavenger

Reputation: 725

How to start Sublime Text 3 with a new file open along with the files opened in the last session

Instead of pressing Ctr + N for a new file, is there a way to automate that process whenever we start Sublime Text 3, along with the old files loaded as usual.

Upvotes: 0

Views: 352

Answers (1)

Keith Hall
Keith Hall

Reputation: 16105

Yes, the subl executable supports an argument --command.

Therefore, you need to launch subl using subl --command new_file to get it to open a new blank tab along with the previously opened files.

Depending how you normally launch Sublime Text, you may want to edit a launcher icon/shortcut to include this argument.

Upvotes: 4

Related Questions