如何防止 Sublime Text 2 在启动时打开上次打开的文件/项目 [英] How to prevent Sublime Text 2 from opening that last open file / project when starting up

查看:55
本文介绍了如何防止 Sublime Text 2 在启动时打开上次打开的文件/项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用 Lion - 在命令行中,当我使用subl"打开我的项目时.在我的项目文件夹中 - 它会打开我退出 Sublime 之前打开的最后一个项目.

I am on Lion - and in the command line, when I open up my project using "subl ." in my project folder - it opens up the last project I had open before I quit Sublime.

我未选中最大首选项退出时恢复窗口".

I have the Max Preference "Restore windows when quitting" unchecked.

如何防止这种行为?对此有偏好设置吗?

How to I prevent this behaviour? Is there a preference setting for this?

推荐答案

我认为可以通过更改 hot_exitremember_open_files 设置来启用您想要的行为.如果您查看全局设置 - 默认"首选项,则会看到一些描述这些设置的评论.

I think the behavior you want can be enabled by changing the hot_exit and remember_open_files settings. If you check out the "Global Settings - Default" preferences, there are some comments there describing these settings.

如果您想更改它们,您应该在全局设置 - 用户"文件中覆盖它们以在更新时保留您的更改.

If you want to change them, you should override them in the "Global Settings - User" file to preserve your changes across updates.

这篇关于如何防止 Sublime Text 2 在启动时打开上次打开的文件/项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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