增加Sublime Text 2中最近项目的数量?

Ste*_*ers 24 sublimetext2

是否可以增加Sublime Text 2中Projects - > Recent Projects菜单中出现的最近项目的数量?我搜索了设置,但我没有找到任何东西.

AGS*_*AGS 39

编辑此文件:

~/Library/Application Support/Sublime Text 2/Packages/Default/Main.sublime-menu
Run Code Online (Sandbox Code Playgroud)

在第715行附近你会看到:

"caption": "Recent Projects",
            "mnemonic": "R",
            "children":
            [
                { "command": "open_recent_project", "args": {"index": 0 } },
                { "command": "open_recent_project", "args": {"index": 1 } },
                { "command": "open_recent_project", "args": {"index": 2 } },
                { "command": "open_recent_project", "args": {"index": 3 } },
                { "command": "open_recent_project", "args": {"index": 4 } },
                { "command": "open_recent_project", "args": {"index": 5 } },
                { "command": "open_recent_project", "args": {"index": 6 } },
                { "command": "open_recent_project", "args": {"index": 7 } },
                { "command": "open_recent_project", "args": {"index": 8 } },
                { "command": "open_recent_project", "args": {"index": 9 } },
                { "caption": "-" },
                { "command": "clear_recent_projects", "caption": "Clear Items" }
            ]
Run Code Online (Sandbox Code Playgroud)

添加额外的行

{ "command": "open_recent_project", "args": {"index": n } },
Run Code Online (Sandbox Code Playgroud)

IE

"caption": "Recent Projects",
            "mnemonic": "R",
            "children":
            [
                { "command": "open_recent_project", "args": {"index": 0 } },
                { "command": "open_recent_project", "args": {"index": 1 } },
                { "command": "open_recent_project", "args": {"index": 2 } },
                { "command": "open_recent_project", "args": {"index": 3 } },
                { "command": "open_recent_project", "args": {"index": 4 } },
                { "command": "open_recent_project", "args": {"index": 5 } },
                { "command": "open_recent_project", "args": {"index": 6 } },
                { "command": "open_recent_project", "args": {"index": 7 } },
                { "command": "open_recent_project", "args": {"index": 8 } },
                { "command": "open_recent_project", "args": {"index": 9 } },
                { "command": "open_recent_project", "args": {"index": 10 } },
                { "caption": "-" },
                { "command": "clear_recent_projects", "caption": "Clear Items" }
            ]
Run Code Online (Sandbox Code Playgroud)

现在你有11个最近的项目

  • 对于ST3:将此建议与http://stackoverflow.com/questions/20540492/how-to-increase-number-of-recent-files-in-sublime-text-3中的答案相结合,效果很好 (5认同)
  • 那很有效!如果Windows上的任何人(比如我自己)想知道该文件的位置,它位于:\ AppData\Roaming\Sublime Text 2\Packages\Default (3认同)