Close all tabs, but not the window, in Sublime Text

前端 未结 6 881
无人及你
无人及你 2020-12-25 09:24

Is there a way to close all tabs in one go in Sublime Text, but leave the window with the current project open? It is really annoying when I just want to close all open file

6条回答
  •  天命终不由人
    2020-12-25 10:19

    By default, closing all tabs don't close the window, but beware: The last build 3059 (December 13, 2013) of Sublime Text 3 does now include:

    Automatically closing windows when the last tab is dragged out

    It is managed by this setting:

    // Set to true to close windows as soon as the last file is closed, unless
    // there's a folder open within the window. This is always enabled on OS X,
    // changing it here won't modify the behavior.
    "close_windows_when_empty": false,
    

    I just want to close all open file and start the new task

    In that same Sublime Text 3 build 3059, you also have the setting:

    When the last file is closed, a new transient file is created automatically

    Combined with "File -> Close All Files", that can help starting quickly in a new file.

提交回复
热议问题