关闭Sublime Text中的所有选项卡,但不关闭窗口 [英] Close all tabs, but not the window, in Sublime Text

查看:284
本文介绍了关闭Sublime Text中的所有选项卡,但不关闭窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一种方法可以一次关闭"Sublime Text"中的所有选项卡,但在当前项目处于打开状态的情况下使窗口保持打开状态?当我只想关闭所有打开的文件并开始新任务时,我必须一一地Cmd-W,这真的很烦人.如果执行Cmd-Opt-W,它将关闭所有选项卡和当前项目.

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 and start the new task I have to Cmd-W them one by one. If I do Cmd-Opt-W it will close all tabs and the current project.

推荐答案

感谢Alex,事实证明这很简单,Preferences> Key Bindings> User:

Thanks to Alex, it turned out kind of simple, Preferences > Key Bindings > User:

{ "keys": ["super+shift+w"], "command": "close_all" }

无需重启Sublime,它可以立即工作.更好的是,不需要使用新的快捷方式,在所有选项卡都消失之后,您仍然可以使用Cmd-W关闭Sublime窗口.

No need to restart Sublime, it works right away. And what's even better, no need to get used new shortcuts, you can still close Sublime window with Cmd-W after all tabs are gone.

这篇关于关闭Sublime Text中的所有选项卡,但不关闭窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆